是我弄错了。交叉编译器指定正确,只是编译刚开始的时候是在tool目录中,所以用的是系统的gcc。
编译中出现两个错误:
In file included from concurrent/qfutureinterface.cpp:43:
concurrent/qfuture.h:120:105: error: macro "index" requires 2 arguments, but only 1 given
concurrent/qfuture.h:121:89: error: macro "index" requires 2 arguments, but only 1 given
In file included from concurrent/qfutureinterface.cpp:43:
concurrent/qfuture.h: In constructor 'QFuture<T>::const_iterator::const_iterator(const QFuture<T>*, int)':
concurrent/qfuture.h:120: error: expected `(' before '{' token
concurrent/qfuture.h: In copy constructor 'QFuture<T>::const_iterator::const_iterator(const QFuture<T>::const_iterator&)':
concurrent/qfuture.h:121: error: expected `(' before '{' token
gmake[1]: *** [.obj/release-shared-emb-mips/qfutureinterface.o] Error 1
是否有人在交叉编译时遇到同类错误呢?
[ 此帖被carigia在2009-05-06 14:29重新编辑 ]