• 4240阅读
  • 0回复

求助!在ubuntu下编译arm板上的qt应用程序时出错undefined reference [复制链接]

上一主题 下一主题
离线linkway
 
只看楼主 倒序阅读 楼主  发表于: 2010-05-19
make时出现如下问题:
root@linkway-desktop:~/test# make
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/work/qt-2.3.7/include -I/work/qtopia-1.7.0/include -o main.o main.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/work/qt-2.3.7/include -I/work/qtopia-1.7.0/include -o test.o test.cpp
/work/qt-2.3.7/bin/moc test.h -o moc_test.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/work/qt-2.3.7/include -I/work/qtopia-1.7.0/include -o moc_test.o moc_test.cpp
arm-linux-gcc  -o test main.o test.o moc_test.o  -L/work/qtopia-1.7.0/lib -L/work/qt-2.3.7/lib -lm -lqpe -lqtopia -lqte
test.o(.text+0x4c): In function `Form2::Form2[not-in-charge](QWidget*, char const*, bool, unsigned)':
: undefined reference to `QTextEdit::QTextEdit[in-charge](QWidget*, char const*)'
test.o(.text+0x228): In function `Form2::Form2[in-charge](QWidget*, char const*, bool, unsigned)':
: undefined reference to `QTextEdit::QTextEdit[in-charge](QWidget*, char const*)'
collect2: ld returned 1 exit status
make: *** [test]错误
快速回复
限100 字节
 
上一个 下一个