1. 程式人生 > >編譯Qt時遇到”error LNK2001: 無法解析的外部符號“

編譯Qt時遇到”error LNK2001: 無法解析的外部符號“

解決辦法:執行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