【发布时间】:2017-01-13 10:50:20
【问题描述】:
我在VS2012中构建项目,出现以下错误,我在谷歌上搜索过,没有找到很多类似的解决方案,请提供相同的解决方案,这里是错误代码sn-p -
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 路径得到解决。
-
您可以将其标记为答案。
标签: visual-studio visual-c++ visual-studio-2012 msbuild