新手 刚安装完QT 试着编译简单的HelloWorld文件,但是make后出现如下错误
新手 刚安装完QT 试着编译简单的HelloWorld文件,
按顺序
qmake -project
qmake test.pro
make
但是make后出现如下错误:
test.cpp: In function `int main(int, char**)':
test.cpp:8: `QLabel' undeclared (first use this function)
test.cpp:8: (Each undeclared identifier is reported only once for each function
it appears in.)
test.cpp:8: `label' undeclared (first use this function)
test.cpp:8: parse error before `(' token
make: *** [test.o] Error 1
是不是我的环境变量没有设对呢?为什么找不到库?
求教~~磕头~~