C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 08-18-2005, 08:47 PM   #1
Registered User
 
Join Date: Jun 2004
Posts: 266
Linking problems trying to compile QT application

Guys im trying to do the exercise of http://doc.trolltech.com/4.0/tutorial-t1.html
but im stuck with the following errors:
Code:
g++ -c -pipe -Wall -W -O2 -march=athlon-xp -pipe -DQT_NO_DEBUG  -I/usr/qt/3/mkspecs/linux-g++ -I. -I. -I/usr/qt/3/include -o exercise1.o exercise1.cpp
exercise1.cpp:7:28: QApplication: No such file or directory
exercise1.cpp:8:27: QPushButton: No such file or directory
exercise1.cpp: In function `int main(int, char**)':
exercise1.cpp:12: error: `QApplication' undeclared (first use this function)
exercise1.cpp:12: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
exercise1.cpp:12: error: parse error before `(' token
exercise1.cpp:14: error: `QPushButton' undeclared (first use this function)
exercise1.cpp:15: error: `hello' undeclared (first use this function)
exercise1.cpp:18: error: `app' undeclared (first use this function)
exercise1.cpp:11: warning: unused parameter `int argc'
exercise1.cpp:11: warning: unused parameter `char**argv'
exercise1.cpp:19:6: warning: no newline at end of file
make: *** [exercise1.o] Error 1
it is not finding the includes but they are there where the path points any ideas?
Maragato is offline   Reply With Quote
Old 08-19-2005, 09:08 PM   #2
Registered User
 
Join Date: Jun 2004
Posts: 266
Fixed I was using an older version of qt than the lastest one.
Maragato is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with my first attempt at a Qt application... Captain Penguin C++ Programming 0 10-01-2002 09:14 PM
Qt Manual problems rip1968 Linux Programming 0 08-15-2002 03:59 PM
error LNK2001: unresolved external symbol Unregistered C Programming 12 07-12-2002 08:45 PM
Few problems with console application GaPe C Programming 12 04-03-2002 01:19 PM
Compile Problems Eber Kain C++ Programming 1 08-26-2001 01:50 PM


All times are GMT -6. The time now is 07:19 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22