我建立在VS2012的項目,並得到以下錯誤,我已搜查谷歌,並沒有發現太多類似的解決方案,請提供相同的解決方案,這是錯誤的代碼片段 -構建項目時遇到錯誤?
MOCing D:\giit\release_17\RTTBorrow\rttBorrowWindow.h
'moc.exe' is not recognized as an internal or external command,
operable program or batch file.
MOCing D:\giit\release_17\RTTBorrow\rttListView.h
'moc.exe' is not recognized as an internal or external command,
operable program or batch file.
MOCing D:\giit\release_17\RTTBorrow\rttpassworddialog.h
'moc.exe' is not recognized as an internal or external command,
operable program or batch file.
MOCing D:\giit\release_17\RTTBorrow\rttpassworddialogimpl.h
'moc.exe' is not recognized as an internal or external command,
operable program or batch file.
MOCing D:\giit\release_17\RTTBorrow\rttTextEdit.h
'moc.exe' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(172,5): error MSB6006: "cmd.exe" exited with code 9009.
Thanks !!!
你建立的項目是什麼?提供詳細步驟來重現該問題。 –
@strain通過提供用於構建的moc.exe的路徑來解決問題。 – Gaurav
您可以將其標記爲答案。 –