- 论坛徽章:
- 0
|
执行nake时出现如下信息g++ -c -pipe -Wall -W -O2 -march=i386 -mcpu=i686 -g -DGLX_GLXEXT_LEGACY -fno-use-cxa-atexit -fno-exceptions -DQT_NO_DEBUG -I/usr/lib/qt-3.1/mkspecs/default -I. -I. -I/usr/lib/qt-3.1/include -o hello.o hello.cpp
hello.cpp:1:24: QApplication: 没有那个文件或目录
hello.cpp:2:23: QPushButton: 没有那个文件或目录
hello.cpp: In function `int main(int, char**)':
hello.cpp:4: `QApplication' undeclared (first use this function)
hello.cpp:4: (Each undeclared identifier is reported only once for each
function it appears in.)
hello.cpp:4: parse error before `(' token
hello.cpp:5: `QPushButton' undeclared (first use this function)
hello.cpp:6: `b' undeclared (first use this function)
hello.cpp:7: `QObject' undeclared (first use this function)
hello.cpp:7: parse error before `::' token
hello.cpp:8: `app' undeclared (first use this function)
hello.cpp:4: warning: unused parameter `int argc'
hello.cpp:4: warning: unused parameter `char**argv'
make: *** [hello.o] Error 1
帮忙看一下,不胜感激 |
|