小弟新手。
用Fc下用QT4.6.0 能正确运行
用Qt 4.6.0+ arm-linux-gcc4.1.2 交叉编译能通过 能在qvfb运行。
但是用Qtopia4.3.3 + arm-linux-gcc 3.4.1 交叉编译则报错一群群。。
arm-linux-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/qtopiacore_ts/mkspecs/qws/linux-arm-g++ -I. -I/usr/local/Trolltech/qtopiacore_ts/include/QtCore -I/usr/local/Trolltech/qtopiacore_ts/include/QtCore -I/usr/local/Trolltech/qtopiacore_ts/include/QtNetwork -I/usr/local/Trolltech/qtopiacore_ts/include/QtNetwork -I/usr/local/Trolltech/qtopiacore_ts/include/QtGui -I/usr/local/Trolltech/qtopiacore_ts/include/QtGui -I/usr/local/Trolltech/qtopiacore_ts/include -I. -I. -I. -o main.o main.cpp
In file included from main.cpp:2:
window.hpp:8: error: expected constructor, destructor, or type conversion before "class"
window.hpp:8: error: expected `,' or `;' before "class"
window.hpp:13: error: expected constructor, destructor, or type conversion before "class"
window.hpp:13: error: expected `,' or `;' before "class"
window.hpp:31:
error: ISO C++ forbids declaration of `ShowImage' with no typewindow.hpp:31: error: expected `;' before '*' token
window.hpp:32: error: ISO C++ forbids declaration of `QPushButton' with no type
window.hpp:32: error: expected `;' before '*' token
window.hpp:33: error: ISO C++ forbids declaration of `QPushButton' with no type
window.hpp:33: error: expected `;' before '*' token
window.hpp:34: error: ISO C++ forbids declaration of `QPushButton' with no type
window.hpp:34: error: expected `;' before '*' token
make: *** [main.o] 错误 1
有大侠能够提示一下吗?
含泪拜谢……
[ 此帖被gzfk在2010-05-10 02:18重新编辑 ]