编译Qt时遇到”error LNK2001: 无法解析的外部符号“

来源:互联网 发布:会声会影x9 mac破解版 编辑:程序博客网 时间:2024/05/16 07:01

解决办法:运行QT的命令行工具

From a command prompt, change the directory to hello, and type
qmake -project
to create a platform-independent project file (hello.pro), and then type
qmake hello.pro


If you are using Microsoft Visual C++ with a commercial version of Qt, you will need to run nmake instead of make.
Alternatively, you can create a Visual Studio project file from hello.pro by typing
qmake -tp vc hello.pro

原创粉丝点击