标题:求助!在ubuntu下编译arm板上的qt应用程序时出错undefined reference
作者:linkway
日期:2010-05-19 12:24
内容:
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(QWidget*, char const*, bool, unsigned)':
: undefined reference to `QTextEdit::QTextEdit(QWidget*, char const*)'
test.o(.text+0x228): In function `Form2::Form2(QWidget*, char const*, bool, unsigned)':
: undefined reference to `QTextEdit::QTextEdit(QWidget*, char const*)'
collect2: ld returned 1 exit status
make: *** 错误