标题:qt-2.3.7 arm-linux-gcc-3.4.1编译出错
作者:yuxuan
日期:2009-03-01 15:10
内容:
平台:VMwareRed hat 9.0
qt -2.3.2
qt-2.3.7
tmake-1.11
编译qt-2.3.7时出错
./configure -xplatform linux-arm-g++ -no-xft -no-qvfb -depths 4,8,16,32
make 失败
........................
/2440/Qt/target/qt-2.3.7/include/qstring.h: In member function `uchar& QChar::cell()':
/2440/Qt/target/qt-2.3.7/include/qstring.h:166: error: cannot bind packed field
`((QChar*)this)->QChar::cl' to `uchar&'
/2440/Qt/target/qt-2.3.7/include/qstring.h: In member function `uchar& QChar::row()':
/2440/Qt/target/qt-2.3.7/include/qstring.h:167: error: cannot bind packed field
`((QChar*)this)->QChar::rw' to `uchar&'
In file included from kernel/qt.h:62,
from allmoc.cpp:16:
/2440/Qt/target/qt-2.3.7/include/qsortedlist.h: In destructor `QSortedList::~QSortedList()':
/2440/Qt/target/qt-2.3.7/include/qsortedlist.h:51: error: there are no arguments to `clear' that depend on a template parameter, so a declaration of `clear' must be available
/2440/Qt/target/qt-2.3.7/include/qsortedlist.h:51: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
make[2]: *** Error 1
make[2]: Leaving directory `/2440/Qt/target/qt-2.3.7/src'
make[1]: *** Error 2
make[1]: Leaving directory `/2440/Qt/target/qt-2.3.7'
make: *** Error 2
#1 [jzj139 03-01 17:06]
gcc版本高了 造成的
要修改对应的源码
#2 [zxwty 03-27 15:04]
用gcc2.95.3吧