|
-
March 18th, 2002, 07:12 PM
#1
Problems compiling Qt tutorials
After hearing so many good things about Qt, I decided to learn it. So I fired up the tutorials and typed in the first tutorial program. When I tried to compile it like so:
gcc -I"/usr/lib/qt-2.3.1/include" qt1.cpp
I got a bunch of errors about it not finding certain classes and constructors. Any idea what's wrong?
Cheers,
cgkanchi
-
March 18th, 2002, 07:19 PM
#2
Try this instead:
g++ -I$/usr/lib/qt-2.3.1/include qt1.cpp -o qt1 -L$/usr/lib/qt-2.3.1/lib -lqt
Don't ask what it all means, but this will work!
-
March 18th, 2002, 07:24 PM
#3
Whoops I used g++ too. But I'll try this particular syntax anyways.
Cheers,
cgkanchi
-
March 18th, 2002, 08:10 PM
#4
I got it working. Thanx proactive. Greenies for you
Cheers,
cgkanchi
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|