2009年2月11日星期三

qt-4.5.0-rc1 版本中callgrindChildExitCode 未定义的问题

ftp://ftp.qtopia.org.cn/mirror/ftp.trolltech.com/qt/source/qt-x11-opensource-src-4.5.0-rc1.tar.gz

从上面网址下载的qt-x11-4.5.0的版本 ,在编译的时候会碰到callgrindChildExitCode未定义的问题,出错信息为
"qtestcase.cpp:1490: error: ‘callgrindChildExitCode’ was not declared in this scope"

原因为:在1415行定义的"int callgrindChildExitCode;" ,其代码在一个try{}代码块里面,相当于外部不可见,将其移到{}外即可。也就是把它放在1361行的地方。

没有评论:

发表评论