标题: 交叉编译问题,急 [打印本页] 作者: smallknife_hb 时间: 2015-1-12 14:22 标题: 交叉编译问题,急 我对syslink进行交叉编译到arm,但是出现如下错误: ) f" D$ g7 [+ L/home/tl/Projects/Xdl-build-arm/../../qt/Qt4.7/include/QtCore/qtconcurrentrunbase.h:65: error: two or more data types in declaration of 'parameter'( S6 m% N& O& c1 z; t
) H( }' n% b1 I; p) d$ @& q1 c$ h# M这个头文件内容如下: : F+ M0 a+ j: l#ifndef QTCONCURRENT_RUNBASE_H/ E4 }* {+ o: ?: P
#define QTCONCURRENT_RUNBASE_H ' L" v; v$ H+ r8 b* ~' ?8 S6 n3 c& }8 r& L
#include <QtCore/qglobal.h> # n$ s' Q6 V8 \; _6 s- E7 }, @. U+ K$ y$ d) p* {& X7 c' B5 `
#ifndef QT_NO_CONCURRENT * S1 m5 {* L9 w, G6 H* W: J- L0 P* u7 S/ ]4 A5 L( p6 {/ o
#include <QtCore/qfuture.h> 9 H) T; T3 `8 W, E% q#include <QtCore/qrunnable.h> 4 _3 f) p; a. Q% V- w( ~1 u2 V( A#include <QtCore/qthreadpool.h> 3 l, \6 O: n, c& \/ @ & k1 Q0 K1 c7 M! Z2 ?2 FQT_BEGIN_HEADER 9 u8 `( i5 z {) d# }# c. PQT_BEGIN_NAMESPACE- u; E6 L( A/ {4 P' v. f- Q$ j* b
2 h& S6 K( \& V5 S9 y) S: T
QT_MODULE(Core) 2 P. ]( s9 N% R1 {( i $ H9 Z- Q- [6 }4 Y" g# }7 E#ifndef qdoc ( e+ R6 r! o X. ^1 Q6 e- _5 b4 X1 H4 \6 v
namespace QtConcurrent { 4 |& y, m0 j2 w1 b / C! Y8 q9 K4 K Itemplate <typename T> ; b/ i. c( @' i d/ i' cstruct SelectSpecialization ! R- R2 I/ o$ |2 D+ ?( {6 \8 j{ / w% f# A. H( Y# O Y4 d9 O template <class Normal, class Void> : W$ K" T5 F6 h# b0 {" v; K struct Type { typedef Normal type; };2 K3 }$ R% M0 T( Z
};9 H( Y& A/ j" R P7 R* ~% |
/ b! |' R \0 Q6 Rtemplate <>, ^) U. x! F0 n" N# m1 P3 @
struct SelectSpecialization<void>( h- t/ G/ D" u; q4 y
{ / q0 q2 \9 p0 M1 y! M3 w template <class Normal, class Void>9 ?9 N3 `, w( g3 s) v% ]& T; j% @
struct Type { typedef Void type; };. C, }9 @" a x6 |$ n& q
}; " N: a g' ]2 H; Y* W, Q: Q" i! l$ u! z$ ]9 z
template <typename T>( s; q" R/ `. p, Q ?1 C7 C5 M$ z
class RunFunctionTaskBase : public QFutureInterface<T> , public QRunnable " r4 x# S, N( y/ W{$ L n% n) c8 C" j* M4 ~
public:/ y: m$ d1 C5 G% R7 T3 d
QFuture<T> start()3 w: R0 {" o. O7 u3 K% |4 h5 P, p+ M
{( k1 R6 O$ V5 ]6 {$ Q0 M
this->setRunnable(this); . X. Z' O- c# Y) U: R this->reportStarted(); $ X# |# V5 S- f% \4 {6 C QFuture<T> future = this->future(); 7 }$ }& ^* C; u$ n( c% m" j: X QThreadPool::globalInstance()->start(this, /*m_priority*/ 0); 3 u* y8 u+ T" {( J1 I; `! T) ? return future; % [0 ? M2 A7 P- y' A& [ }4 `6 W- J: {' P2 Z. q