主题 : 编译出现错误 好像是include的错误 大家给看一下 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 16287
精华: 0
发帖: 14
金钱: 75 两
威望: 15 点
综合积分: 28 分
注册时间: 2010-03-16
最后登录: 2011-04-02
楼主  发表于: 2010-03-18 16:25

 编译出现错误 好像是include的错误 大家给看一下

hello.log如下:
rm -f .obj/release-shared/moc_hello_base.o
rm -f .moc/release-shared/moc_hello_base.cpp
rm -f .ui/release-shared/hello_base.cpp .ui/release-shared/hello_base.h
rm -f .obj/release-shared/hello.o .obj/release-shared/main.o .obj/release-shared/hello_base.o
rm -f *~ core *.core
/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/bin/uic hello_base.ui -o .ui/release-shared/hello_base.h
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os -DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" -DQTOPIA_TARGET=\"hello\" -DQTOPIA_TRTARGET=\"hello\" -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/hello.o hello.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os -DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" -DQTOPIA_TARGET=\"hello\" -DQTOPIA_TRTARGET=\"hello\" -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 hello_base.ui -i hello_base.h -o .ui/release-shared/hello_base.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os -DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" -DQTOPIA_TARGET=\"hello\" -DQTOPIA_TRTARGET=\"hello\" -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/hello_base.o .ui/release-shared/hello_base.cpp
/opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/bin/moc .ui/release-shared/hello_base.h -o .moc/release-shared/moc_hello_base.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os -DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" -DQTOPIA_TARGET=\"hello\" -DQTOPIA_TRTARGET=\"hello\" -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_hello_base.o .moc/release-shared/moc_hello_base.cpp
g++ -o hello .obj/release-shared/hello.o .obj/release-shared/main.o .obj/release-shared/hello_base.o .obj/release-shared/moc_hello_base.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(.text+0x41): In function `main':
: undefined reference to `QPEApplication::QPEApplication[in-charge](int&, char**, QApplication::Type)'
.obj/release-shared/main.o(.text+0x20e): In function `main':
: undefined reference to `QPEApplication::showMainDocumentWidget(QWidget*, bool)'
.obj/release-shared/main.o(.text+0x21a): In function `main':
: undefined reference to `QPEApplication::exec()'
.obj/release-shared/main.o(.text+0x256): In function `main':
: undefined reference to `QPEApplication::~QPEApplication [in-charge]()'
.obj/release-shared/main.o(.text+0x27e): In function `main':
: undefined reference to `QPEApplication::showMainWidget(QWidget*, bool)'
.obj/release-shared/main.o(.text+0x2a7): In function `main':
: undefined reference to `QPEApplication::~QPEApplication [in-charge]()'
collect2: ld returned 1 exit status
make: *** [hello] Error 1
[ 此帖被396954504在2010-03-18 17:06重新编辑 ]
级别: 新手上路
UID: 16287
精华: 0
发帖: 14
金钱: 75 两
威望: 15 点
综合积分: 28 分
注册时间: 2010-03-16
最后登录: 2011-04-02
1楼  发表于: 2010-03-18 17:00
大家知道的快说一下啊
Eddy Lau (Sun Boy)
级别: 圣骑士
UID: 11202
精华: 1
发帖: 364
金钱: 1885 两
威望: 380 点
综合积分: 748 分
注册时间: 2009-11-30
最后登录: 2010-04-12
2楼  发表于: 2010-03-18 17:17
引用楼主396954504于2010-03-18 16:25发表的 编译出现错误 好像是include的错误 大家给看一下 :
编译出现错误 好像是include的错误 大家给看一下 :

已经看了一下!
多谢
為什麼生世間上 此間許多哀與傷 為什麼爭鬥不絕 歡欣不永享 
問為何人存隔膜 顏面無真相 問那天可找得到 理想中的烏托幫