![]() |
| | #1 |
| Registered User Join Date: Jun 2004
Posts: 266
| Linking problems trying to compile QT application 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
|
| Maragato is offline | |
| | #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 | |
![]() |
| Thread Tools | |
| Display Modes | |
|
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 |