标题:【提问】帮忙看看我的qt那里有问题
作者:fallening
日期:2005-11-23 20:58
内容:
make之后有这样的提示信息:
$ make
g++-3.4 -c -pipe -Wall -W -O2-DQT_NO_DEBUG -I/usr/share/qt3/mkspecs/default -I. -I. -I/usr/share/qt3/include -o main.o main.cc
main.cc:1:26: qapplication.h: 没有那个文件或目录
main.cc:2:20: qlabel.h: 没有那个文件或目录
main.cc: In function `int main(int, char**)':
main.cc:6: error: `QApplication' undeclared (first use this function)
main.cc:6: error: (Each undeclared identifier is reported only once for each function it appears in.)
main.cc:6: error: expected `;' before "app"
main.cc:7: error: `QLabel' undeclared (first use this function)
main.cc:7: error: `label' undeclared (first use this function)
main.cc:7: error: `QLabel' has not been declared
main.cc:8: error: `app' undeclared (first use this function)
main.cc:11:2: warning: no newline at end of file
main.cc: At global scope:
我的.qt下边的qtrc内容
[3.3]
libraryPath=/home/fallening/.kde/lib/kde3/plugins/:/usr/lib/kde3/plugins/
[General]
GUIEffects=general^efademenu^eanimatecombo^efadetooltip^e
embedFonts=true
enableXft=true
font=Arial,12,-1,5,50,0,0,0,0,0
style=acqua
useXft=true
[KDE]
contrast=10
kdeAddedLibraryPaths=/home/fallening/.kde/lib/kde3/plugins/^e/usr/lib/kde3/plugins/^e
[KWinPalette]
activeBackground=#000000
activeBlend=#ffffff
activeForeground=#ffffff
activeTitleBtnBg=#000000
frame=#a8a8a8
inactiveBackground=#a8a8a8
inactiveBlend=#a8a8a8
inactiveForeground=#ffffff
inactiveFrame=#a8a8a8
inactiveTitleBtnBg=#a8a8a8
[Palette]
active=#000000^e#a8a8a8^e#e7e7e7^e#b8b8b8^e#313131^e#8c8c8c^e#000000^e#e7e7e7^e#000000^e#ffffff^e#a8a8a8^e#000000^e#000000^e#ffffff^e#0000c0^e#800080^e
disabled=#808080^e#a8a8a8^e#e7e7e7^e#b8b8b8^e#313131^e#8c8c8c^e#8c8c8c^e#e7e7e7^e#808080^e#ffffff^e#a8a8a8^e#000000^e#000000^e#ffffff^e#0000c0^e#800080^e
inactive=#000000^e#a8a8a8^e#e7e7e7^e#b8b8b8^e#313131^e#8c8c8c^e#000000^e#e7e7e7^e#000000^e#ffffff^e#a8a8a8^e#000000^e#000000^e#ffffff^e#0000c0^e#800080^e
我用的是debian ..
#1 [XChinux 11-23 23:04]
把你源代码帖出来看看。