QT4.8.3+qtcreator-2.5.2+MinGW环境 出现的一些错误

问题1.

新建一个资源的文件,然后把图片ADD到资源中去,
最后编译出[release/qrc_mainwindow.cpp] Error2 未找到文件 错误
[解决方法]
参照别人帖子,http://bbs.csdn.net/topics/390287988
C:\Qt\4.8.3\lib;C:\Qt\4.8.3\bin;C:\Qt\4.8.3都加到环境变量Path中,重启Qt Creator

--------------------------------------------------------------------------------------------------------------

问题2.

编译错误:“outside of class is not definition "
[解决方法]
有一种可能的情况:You have semicolons (;) at the end of all your function definitions making the compiler think they're declarations.
即在方法定义的后面都误添加上了";",导致编译器认为这仅仅是个声明
posted @ 2013-11-21 17:06  ops  阅读(480)  评论(0编辑  收藏  举报