推 welon:明明有qt creator 可以用幹嗎自己下command 11/16 19:51
我單一檔案測試.cpp 可以編譯出執行檔
但我是用Qt Designer
先用直接存檔出HelloForm 之後下
C:\qt_test>uic -o HelloForm.h HelloForm.ui
C:\qt_test>qmake -project
C:\qt_test>qmake
C:\qt_test>nmake
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
"C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe" -f
Make
file.Debug
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
e:\qt-4.7.1\bin\uic.exe HelloForm.ui -o ui_HelloForm.h
link /LIBPATH:"e:\qt-4.7.1\lib" /NOLOGO /DEBUG /MANIFEST
/MANIFESTFILE:"
debug\qt_test.intermediate.manifest" /SUBSYSTEM:WINDOWS
"/MANIFESTDEPENDENCY:typ
e='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0'
publicKeyTo
ken='6595b64144ccf1df' language='*' processorArchitecture='*'"
/OUT:debug\qt_tes
t.exe @C:\Users\shihyu\AppData\Local\Temp\nmBB28.tmp
LINK : warning LNK4001: 未指定任何目的檔; 使用程式庫
LINK : warning LNK4068: 未指定 /MACHINE,預設為 X86
LINK : error LNK2001: 無法解析的外部符號 _WinMainCRTStartup
debug\qt_test.exe : fatal error LNK1120: 1 個無法解析的外部符號
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
10.0\VC\BI
N\link.EXE"' : 傳回碼 '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
10.0\VC\BI
N\nmake.exe"' : 傳回碼 '0x2'
請問這是什麼原因?
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.33.235.24