|
发表于 2005-7-22 10:47:43
|
显示全部楼层
多谢,按照你的提示,编译uic的时候出错了,信息如下
[code:1]
g++ -c -I/home/casper/soft/qt_embedded/qt-2.3.10/include -pipe -DQWS-fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG-DUIC -I../shared -I../../../src/3rdparty/zlib -o uic.o uic.cpp
In file included from uic.cpp:21:
uic.h:33: error: `QDomDocument' has not been declared
uic.h:33: error: ISO C++ forbids declaration of `doc' with no type
uic.h:35: error: expected `,' or `...' before '&' token
uic.h:35: error: ISO C++ forbids declaration of `QDomElement' with notype
uic.h:36: error: expected `,' or `...' before '&' token
uic.h:36: error: ISO C++ forbids declaration of `QDomElement' with notype
uic.h:38: error: expected `,' or `...' before '&' token
uic.h:38: error: ISO C++ forbids declaration of `QDomElement' with notype
uic.h:39: error: expected `,' or `...' before '&' token
uic.h:39: error: ISO C++ forbids declaration of `QDomElement' with notype
uic.h:41: error: expected `,' or `...' before '&' token
uic.h:41: error: ISO C++ forbids declaration of `QDomElement' with notype
uic.h:42: error: expected `,' or `...' before '&' token
uic.h:42: error: ISO C++ forbids declaration of `QDomElement' with notype
uic.h:43: error: expected `,' or `...' before '&' token
uic.h:43: error: ISO C++ forbids declaration of `QDomElement' with notype
uic.h:45: error: expected `,' or `...' before '&' token
uic.h:45: error: ISO C++ forbids declaration of `QDomElement' with notype
uic.h:46: error: expected `,' or `...' before '&' token
uic.h:46: error: ISO C++ forbids declaration of `QDomElement' with notype
uic.h:47: error: expected `,' or `...' before '&' token
uic.h:47: error: ISO C++ forbids declaration of `QDomElement' with notype
uic.h:48: error: expected `,' or `...' before '&' token
uic.h:48: error: ISO C++ forbids declaration of `QDomElement' with notype
uic.h:49: error: expected `,' or `...' before '&' token
uic.h:49: error: ISO C++ forbids declaration of `QDomElement' with notype
uic.h:50: error: expected `,' or `...' before '&' token
uic.h:51: error: ISO C++ forbids declaration of `QDomElement' with notype
uic.h:52: error: expected `,' or `...' before '&' token
uic.h:52: error: ISO C++ forbids declaration of `QDomElement' with notype
uic.h:53: error: expected `,' or `...' before '&' token
uic.h:53: error: ISO C++ forbids declaration of `QDomElement' with notype
uic.h:55: error: expected `,' or `...' before '&' token
uic.h:55: error: ISO C++ forbids declaration of `QDomNode' with no type
uic.h:58: error: expected `,' or `...' before '&' token
uic.h:58: error: ISO C++ forbids declaration of `QDomElement' with notype
uic.h:59: error: expected `,' or `...' before '&' token
uic.h:59: error: ISO C++ forbids declaration of `QDomElement' with notype
uic.h:60: error: expected `,' or `...' before '&' token
uic.h:60: error: ISO C++ forbids declaration of `QDomElement' with notype
uic.h:63: error: expected `,' or `...' before '&' token
uic.h:63: error: ISO C++ forbids declaration of `QDomElement' with notype
uic.h:72: error: expected `,' or `...' before '&' token
uic.h:72: error: ISO C++ forbids declaration of `QDomElement' with notype
In file included from uic.cpp:31:
../shared/domtool.h:30: error: expected `,' or `...' before '&' token
../shared/domtool.h:30: error: ISO C++ forbids declaration of `QDomElement' with no type
../shared/domtool.h:31: error: expected `,' or `...' before '&' token
../shared/domtool.h:31: error: ISO C++ forbids declaration of `QDomElement' with no type
../shared/domtool.h:32: error: expected `,' or `...' before '&' token
../shared/domtool.h:32: error: ISO C++ forbids declaration of `QDomElement' with no type
../shared/domtool.h:33: error: expected `,' or `...' before '&' token
../shared/domtool.h:33: error: ISO C++ forbids declaration of `QDomElement' with no type
../shared/domtool.h:34: error: expected `,' or `...' before '&' token
../shared/domtool.h:34: error: ISO C++ forbids declaration of `QDomElement' with no type
../shared/domtool.h:35: error: expected `,' or `...' before '&' token
../shared/domtool.h:35: error: ISO C++ forbids declaration of `QDomElement' with no type
uic.cpp:36: error: expected `,' or `...' before '&' token
uic.cpp:37: error: ISO C++ forbids declaration of `QDomNode' with no type
uic.cpp: In function `QString getComment(int)':
uic.cpp:38: error: expected `;' before "child"
uic.cpp:38: warning: statement has no effect
uic.cpp:39: error: `child' undeclared (first use this function)
uic.cpp:39: error: (Each undeclared identifier is reported only once for each function it appears in.)
uic.cpp: At global scope:
uic.cpp:87: error: expected `,' or `...' before '&' token
uic.cpp:88: error: ISO C++ forbids declaration of `QDomNode' with no type
uic.cpp: In member function `QString Uic::trcall(const QString&, int)':
uic.cpp:89: error: `node' undeclared (first use this function)
uic.cpp: At global scope:
uic.cpp:113: error: `QDomDocument' has not been declared
uic.cpp:114: error: ISO C++ forbids declaration of `doc' with no type
uic.cpp: In constructor `Uic::Uic(QTextStream&, int, bool, bool, const QString&, const QString&)':
uic.cpp:123: error: request for member `firstChild' in `doc', which is of non-class type `int'
uic.cpp:125: error: `QDomElement' undeclared (first use this function)
uic.cpp:125: error: expected `;' before "firstWidget"
uic.cpp:126: error: `firstWidget' undeclared (first use this function)
uic.cpp: At global scope:
uic.cpp:149: error: expected `,' or `...' before '&' token
uic.cpp:150: error: ISO C++ forbids declaration of `QDomElement' withno type
uic.cpp: In member function `QString Uic::getClassName(int)':
uic.cpp:151: error: expected `;' before "n"
uic.cpp:151: warning: statement has no effect
uic.cpp:153: error: `n' undeclared (first use this function)
uic.cpp:153: error: `e' undeclared (first use this function)
uic.cpp: At global scope:
uic.cpp:170: error: expected `,' or `...' before '&' token
uic.cpp:171: error: ISO C++ forbids declaration of `QDomElement' withno type
uic.cpp: In member function `QString Uic::getObjectName(int)':
uic.cpp:172: error: expected `;' before "n"
uic.cpp:172: warning: statement has no effect
uic.cpp:173: error: `n' undeclared (first use this function)
uic.cpp:173: error: `e' undeclared (first use this function)
uic.cpp:175: error: expected `;' before "n2"
uic.cpp:175: warning: statement has no effect
uic.cpp:176: error: `n2' undeclared (first use this function)
uic.cpp: At global scope:
uic.cpp:187: error: expected `,' or `...' before '&' token
uic.cpp:188: error: ISO C++ forbids declaration of `QDomElement' withno type
.......(下面还有很多内容相似的错误)
[/code:1]
请问一下这个是什么问题,谢谢 |
|