在最后编译时出现下面的错误,是什么原因啊?新手上路,望高手不吝赐教
g++ -c -pipe -Wall -W -O2 -DNO_DEBUG -I/opt/FriendlyARM/mini2440/arm-qtopia/qt-2.3.2/include -o hello.o hello.cpp
hello.cpp:20: syntax error before `::' token
hello.cpp:30: ISO C++ forbids declaration of `resize' with no type
hello.cpp:30: initializer list being treated as compound expression
hello.cpp:32: ISO C++ forbids declaration of `setMinimumSize' with no type
hello.cpp:32: cannot convert `QSize' to `int' in initialization
hello.cpp:34: ISO C++ forbids declaration of `setMaximumSize' with no type
hello.cpp:34: cannot convert `QSize' to `int' in initialization
hello.cpp:36: ISO C++ forbids declaration of `setSizeIncrement' with no type
hello.cpp:36: cannot convert `QSize' to `int' in initialization
hello.cpp:38: ISO C++ forbids declaration of `setBaseSize' with no type
hello.cpp:38: cannot convert `QSize' to `int' in initialization
hello.cpp:44: syntax error before `.' token
hello.cpp:46: syntax error before `.' token
hello.cpp:48: syntax error before `.' token
hello.cpp:50: syntax error before `.' token
hello.cpp:52: syntax error before `.' token
hello.cpp:54: syntax error before `.' token
hello.cpp:56: syntax error before `.' token
hello.cpp:58: syntax error before `.' token
hello.cpp:60: syntax error before `.' token
hello.cpp:62: syntax error before `.' token
hello.cpp:64: syntax error before `.' token
hello.cpp:66: syntax error before `.' token
hello.cpp:68: syntax error before `.' token
hello.cpp:70: syntax error before `.' token
hello.cpp:72: syntax error before `.' token
hello.cpp:74: syntax error before `.' token
hello.cpp:76: syntax error before `.' token
hello.cpp:78: syntax error before `.' token
hello.cpp:80: syntax error before `.' token
hello.cpp:82: syntax error before `.' token
hello.cpp:84: syntax error before `.' token
hello.cpp:86: syntax error before `.' token
hello.cpp:88: syntax error before `.' token
hello.cpp:90: syntax error before `.' token
hello.cpp:92: syntax error before `.' token
hello.cpp:94: syntax error before `.' token
hello.cpp:96: syntax error before `.' token
hello.cpp:98: syntax error before `.' token
hello.cpp:100: syntax error before `.' token
hello.cpp:102: syntax error before `.' token
hello.cpp:104: syntax error before `.' token
hello.cpp:106: syntax error before `.' token
hello.cpp:108: syntax error before `.' token
hello.cpp:110: syntax error before `.' token
hello.cpp:112: syntax error before `.' token
hello.cpp:114: syntax error before `.' token
hello.cpp:116: syntax error before `.' token
hello.cpp:118: syntax error before `.' token
hello.cpp:120: syntax error before `.' token
hello.cpp:122: syntax error before `.' token
hello.cpp:124: syntax error before `.' token
hello.cpp:126: syntax error before `.' token
hello.cpp:128: syntax error before `.' token
hello.cpp:130: syntax error before `.' token
hello.cpp:132: syntax error before `.' token
hello.cpp:134: ISO C++ forbids declaration of `setPalette' with no type
hello.cpp:134: cannot convert `QPalette' to `int' in initialization
hello.cpp:136: `font' was not declared in this scope
hello.cpp:138: syntax error before `.' token
hello.cpp:140: syntax error before `.' token
hello.cpp:142: syntax error before `.' token
hello.cpp:144: ISO C++ forbids declaration of `setFont' with no type
hello.cpp:144: cannot convert `QFont' to `int' in initialization
hello.cpp:146: `tr' was not declared in this scope
hello.cpp:146: ISO C++ forbids declaration of `setCaption' with no type
hello.cpp:150: ISO C++ forbids declaration of `t' with no type
hello.cpp:150: invalid conversion from `const char*' to `int'
hello.cpp:152: ISO C++ forbids declaration of `b' with no type
hello.cpp:154: invalid use of `this' at top level
hello.cpp:156: ISO C++ forbids declaration of `connect' with no type
hello.cpp:156: initializer list being treated as compound expression
hello.cpp:156: invalid conversion from `const char*' to `int'
hello.cpp:158: syntax error before `->' token
hello.cpp:168: syntax error before `::' token
hello.cpp:176: syntax error before `::' token
hello.cpp:182: ISO C++ forbids declaration of `repaint' with no type
hello.cpp:184: parse error before `}' token
hello.cpp:196: syntax error before `::' token
hello.cpp:214: syntax error before `::' token
hello.cpp:228: `fontMetrics' was not declared in this scope
hello.cpp:234: `width' was not declared in this scope
hello.cpp:236: `height' was not declared in this scope
hello.cpp:242: syntax error before `.' token
hello.cpp:254: syntax error before `.' token
hello.cpp:256: syntax error before `.' token
hello.cpp:262: syntax error before `.' token
hello.cpp:264: syntax error before `.' token
hello.cpp:266: syntax error before `+=' token
hello.cpp:268: syntax error before `++' token
hello.cpp:272: syntax error before `.' token
hello.cpp:276: invalid use of `this' at top level
hello.cpp:276: ISO C++ forbids declaration of `bitBlt' with no type
hello.cpp:276: `int bitBlt' redeclared as different kind of symbol
/opt/FriendlyARM/mini2440/arm-qtopia/qt-2.3.2/include/qpaintdevice.h:343: previous
declaration of `void bitBlt(QPaintDevice*, const QPoint&, const
QPaintDevice*, const QRect& = QRect(0, 0, -1, -1), Qt::RasterOp =
Qt::CopyROP, bool = FALSE)'
hello.cpp:276: initializer list being treated as compound expression
hello.cpp:277: parse error before `}' token
make: *** [hello.o] Error 1