大家好,我自己按照
http://www.aiothome.net/read.php?tid-2998.html所讲的简洁方法,想实现像hello那样的简单的显示程序。在执行 # ./build 后,出现了如下错误,不知道大家有没有碰到类似的问题,请大家指教!
[root@tom first]# ./build
rm -f .obj/release-shared/moc_first.o
rm -f .moc/release-shared/moc_first.cpp
rm -f .ui/release-shared/first.cpp .ui/release-shared/first.h
rm -f .obj/release-shared/main.o .obj/release-shared/first.o
rm -f *~ core *.core
/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/bin/uic first.ui -o .ui/release-shared/first.h
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os -DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" -DQTOPIA_TARGET=\"first\" -DQTOPIA_TRTARGET=\"first\" -DQT_NO_DEBUG -I/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/mkspecs/qws/linux-generic-g++ -I. -I. -I../../qtopia-2.2.0-FriendlyARM/qtopia/include -I../../qtopia-2.2.0-FriendlyARM/qt2/include -I.ui/release-shared/ -I. -I.moc/release-shared/ -o .obj/release-shared/main.o main.cpp
/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/bin/uic first.ui -i first.h -o .ui/release-shared/first.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os -DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" -DQTOPIA_TARGET=\"first\" -DQTOPIA_TRTARGET=\"first\" -DQT_NO_DEBUG -I/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/mkspecs/qws/linux-generic-g++ -I. -I. -I../../qtopia-2.2.0-FriendlyARM/qtopia/include -I../../qtopia-2.2.0-FriendlyARM/qt2/include -I.ui/release-shared/ -I. -I.moc/release-shared/ -o .obj/release-shared/first.o .ui/release-shared/first.cpp
/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/bin/moc .ui/release-shared/first.h -o .moc/release-shared/moc_first.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os -DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" -DQTOPIA_TARGET=\"first\" -DQTOPIA_TRTARGET=\"first\" -DQT_NO_DEBUG -I/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/mkspecs/qws/linux-generic-g++ -I. -I. -I../../qtopia-2.2.0-FriendlyARM/qtopia/include -I../../qtopia-2.2.0-FriendlyARM/qt2/include -I.ui/release-shared/ -I. -I.moc/release-shared/ -o .obj/release-shared/moc_first.o .moc/release-shared/moc_first.cpp
make: Circular all <- first dependency dropped.
g++ -o first .obj/release-shared/main.o .obj/release-shared/first.o .obj/release-shared/moc_first.o -L/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/lib -L/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/lib -lqte
.obj/release-shared/main.o: In function `main':
main.cpp:(.text+0x116): undefined reference to `QPEApplication::QPEApplication(int&, char**, QApplication::Type)'
main.cpp:(.text+0x263): undefined reference to `QPEApplication::showMainDocumentWidget(QWidget*, bool)'
main.cpp:(.text+0x26f): undefined reference to `QPEApplication::showMainWidget(QWidget*, bool)'
main.cpp:(.text+0x27d): undefined reference to `QPEApplication::exec()'
main.cpp:(.text+0x2a9): undefined reference to `QPEApplication::~QPEApplication()'
collect2: ld returned 1 exit status
make: *** [first] Error 1