请问一下,我在装kdevelop时,用的是qt3-3的库,按照楼主的设置更改后,发现还是出错.出错信息如下:
cd '/home/test/kdevelop/qt4' && QTDIR="/usr/lib/qt4" gmake -j1
cd src && gmake -f Makefile
g++ -c -pipe -Wall -W -O2 -DQT_NO_DEBUG -I/usr/local/Trolltech/Qt-4.1.3/mkspecs/default -I. -o qt4.o qt4.cpp
qt4.cpp:28:30: error: QtGui/QApplication: 没有那个文件或目录
qt4.cpp:29:29: error: QtGui/QPushButton: 没有那个文件或目录
qt4.cpp: In function ‘int main(int, char**)’:
qt4.cpp: In function ‘int main(int, char**)’:
qt4.cpp:37: 错误:‘QApplication’ was not declared in this scope
qt4.cpp:37: 错误:expected `;' before ‘app’
qt4.cpp:39: 错误:‘QPushButton’ was not declared in this scope
qt4.cpp:39: 错误:expected `;' before ‘button’
qt4.cpp:41: 错误:‘button’ was not declared in this scope
qt4.cpp:43: 错误:‘QObject’ 未声明
qt4.cpp:43: 错误:‘click’ was not declared in this scope
qt4.cpp:43: 错误:‘SIGNAL’ was not declared in this scope
qt4.cpp:43: 错误:‘app’ was not declared in this scope
qt4.cpp:43: 错误:‘quit’ was not declared in this scope
qt4.cpp:43: 错误:‘SLOT’ was not declared in this scope
qt4.cpp:43: 错误:‘connect’ was not declared in this scope
qt4.cpp: At global scope:
qt4.cpp:31: 警告:未使用的形参 ‘argc’
qt4.cpp:31: 警告:未使用的形参 ‘argv’
gmake[1]: *** [qt4.o] 错误 1
gmake: *** [sub-src] 错误 2
*** 退出状态:2 ***
请求高人指点!!!

补充:我用的就是搂主贴得事例代码!