• 4640阅读
  • 2回复

【提问】qt/e 编译问题 [复制链接]

上一主题 下一主题
离线hooo
 
只看楼主 倒序阅读 楼主  发表于: 2006-01-08
请问我在编译qt/e2.3.7时候出现下面错误
make[2]: Entering directory `/root/qt-2.3.7/tutorial'
make t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14
make[3]: Entering directory `/root/qt-2.3.7/tutorial'
if [ -d t1 ]; then cd t1 ; make; fi
make[4]: Entering directory `/root/qt-2.3.7/tutorial/t1'
arm-linux-gcc -L/root/qt-2.3.7/lib -Wl,-rpath,/root/qt-2.3.7/lib   -o ./t1 main.
o   -lqte
/root/qt-2.3.7/lib/libqte.so: undefined reference to `operator new[](unsigned)'
/root/qt-2.3.7/lib/libqte.so: undefined reference to `operator delete(void*)'
/root/qt-2.3.7/lib/libqte.so: undefined reference to `cos'
/root/qt-2.3.7/lib/libqte.so: undefined reference to `sin'
/root/qt-2.3.7/lib/libqte.so: undefined reference to `__cxa_pure_virtual'
/root/qt-2.3.7/lib/libqte.so: undefined reference to `atan2'
/root/qt-2.3.7/lib/libqte.so: undefined reference to `pow'
/root/qt-2.3.7/lib/libqte.so: undefined reference to `operator delete[](void*)'
/root/qt-2.3.7/lib/libqte.so: undefined reference to `atan'
/root/qt-2.3.7/lib/libqte.so: undefined reference to `operator new(unsigned)'
collect2: ld returned 1 exit status
make[4]: *** [t1] Error 1
make[4]: Leaving directory `/root/qt-2.3.7/tutorial/t1'
make[3]: *** [t1] Error 2
make[3]: Leaving directory `/root/qt-2.3.7/tutorial'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/qt-2.3.7/tutorial'
make[1]: *** [sub-tutorial] Error 2
make[1]: Leaving directory `/root/qt-2.3.7'
make: *** [init] Error 2
[ 此贴被fanyu在2006-01-09 15:36重新编辑 ]
离线愤然苦学
只看该作者 1楼 发表于: 2006-01-16
在编译选项中添加 -lstdc++ 试试!
离线kevinlynx

只看该作者 2楼 发表于: 2006-07-17
我也遇到这样的错误~
快速回复
限100 字节
 
上一个 下一个