none
error MSB6006: "cmd.exe" exited with code 3.

    Question

  • When I attempt to build a solution in MS Visual Studio 2010 I am receiving this error.

    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 3.

    I am new to c++ and Microsoft Visual Studio. I would appreciate any light you could shed on the situation. I will post the output from the build below.

     

    1>------ Build started: Project: SpecialModules, Configuration: Debug Win32 ------
    2>------ Build started: Project: libb64, Configuration: Debug Win32 ------
    3>------ Build started: Project: TinyXML, Configuration: Debug Win32 ------
    4>------ Build started: Project: Tools, Configuration: Debug Win32 ------
    5>------ Build started: Project: ModulesInterface, Configuration: Debug Win32 ------
    6>------ Build started: Project: PropertyBrowser, Configuration: Debug Win32 ------
    7>------ Build started: Project: Renderer, Configuration: Debug Win32 ------
    8>------ Build started: Project: CommonLib, Configuration: Debug Win32 ------
    1>  Moc'ing InterfaceQuad2D.h...
    1>  The system cannot find the path specified.
    2>  libb64.vcxproj -> C:\Users\Addison\Documents\Visual Studio 2010\Projects\Source\Client\Debug\libb64.lib
    7>  Moc'ing Window.h...
    7>  The system cannot find the path specified.
    7>  Moc'ing ObjectBoxGrid.h...
    1>  Moc'ing PadMonitor.h...
    1>  The system cannot find the path specified.
    7>  The system cannot find the path specified.
    1>  Moc'ing LaserRegion.h...
    1>  The system cannot find the path specified.
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 3.
    7>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 3.
    4>  Moc'ing ConsoleArea.h...
    4>  The system cannot find the path specified.
    4>  Moc'ing ImageDisplay.h...
    4>  The system cannot find the path specified.
    4>  Moc'ing IncommingBuffer.h...
    4>  The system cannot find the path specified.
    4>  Moc'ing DelaySignal.h...
    4>  The system cannot find the path specified.
    4>  Moc'ing AsyncServer.h...
    4>  Moc'ing EventQueue.h...
    4>  The system cannot find the path specified.
    4>  The system cannot find the path specified.
    4>  Moc'ing Qxt\QxtMultiSignalWaiter.h...
    5>  Moc'ing Interface.h...
    4>  The system cannot find the path specified.
    5>  The system cannot find the path specified.
    4>  Moc'ing Qxt\QxtSignalGroup.h...
    4>  The system cannot find the path specified.
    5>  Moc'ing ButtonCall.h...
    4>  Moc'ing Qxt\QxtSignalWaiter.h...
    5>  The system cannot find the path specified.
    4>  The system cannot find the path specified.
    5>  Moc'ing InterfaceButton.h...
    4>  Moc'ing TCPServer.h...
    5>  The system cannot find the path specified.
    4>  Moc'ing StatusBarArea.h...
    4>  The system cannot find the path specified.
    4>  The system cannot find the path specified.
    4>  Moc'ing RPCServer.h...
    5>  Moc'ing InterfaceCheckBox.h...
    4>  The system cannot find the path specified.
    5>  The system cannot find the path specified.
    6>  Moc'ing QtAbstractPropertyBrowser.h...
    6>  The system cannot find the path specified.
    5>  Moc'ing InterfaceComboBox.h...
    6>  Moc'ing QtCharEdit.h...
    6>  The system cannot find the path specified.
    5>  The system cannot find the path specified.
    6>  Moc'ing QtColorEditWidget.h...
    5>  Moc'ing PropertyTree.h...
    6>  The system cannot find the path specified.
    5>  The system cannot find the path specified.
    5>  Moc'ing TreeViewWidget.h...
    6>  Moc'ing QtFontEditWidget.h...
    5>  The system cannot find the path specified.
    6>  The system cannot find the path specified.
    5>  Moc'ing ListWidgetItem.h...
    5>  The system cannot find the path specified.
    6>  Moc'ing QtMetaEnumProvider.h...
    5>  Moc'ing ListViewWidget.h...
    5>  The system cannot find the path specified.
    4>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 3.
    6>  The system cannot find the path specified.
    5>  Moc'ing Module.h...
    5>  The system cannot find the path specified.
    6>  Moc'ing QtPropertyManager.h...
    6>  The system cannot find the path specified.
    6>  Moc'ing QtAbstractPropertyManager.h...
    6>  The system cannot find the path specified.
    6>  Moc'ing QtEditorFactory.h...
    6>  The system cannot find the path specified.
    6>  Moc'ing QtAbstractEditorFactoryBase.h...
    6>  The system cannot find the path specified.
    6>  Moc'ing QtKeySequenceEdit.h...
    6>  The system cannot find the path specified.
    6>  Moc'ing QtBoolEdit.h...
    6>  The system cannot find the path specified.
    6>  Moc'ing FileEdit.h...
    6>  The system cannot find the path specified.
    6>  Moc'ing ButtonEdit.h...
    6>  The system cannot find the path specified.
    6>  Moc'ing FilePathManager.h...
    6>  The system cannot find the path specified.
    6>  Moc'ing FileEditFactory.h...
    6>  The system cannot find the path specified.
    6>  Moc'ing DecoratedDoubleSpinBoxFactory.h...
    6>  The system cannot find the path specified.
    6>  Moc'ing DecoratedDoublePropertyManager.h...
    6>  The system cannot find the path specified.
    6>  Moc'ing ButtonPropertyManager.h...
    6>  The system cannot find the path specified.
    6>  Moc'ing ButtonFactory.h...
    6>  The system cannot find the path specified.
    6>  Moc'ing QtTreePropertyBrowser.h...
    6>  The system cannot find the path specified.
    6>  Moc'ing QtPropertyEditorView.h...
    6>  The system cannot find the path specified.
    6>  Moc'ing QtPropertyEditorDelegate.h...
    6>  The system cannot find the path specified.
    6>  Moc'ing QtGroupBoxPropertyBrowser.h...
    3>  TinyXML.vcxproj -> C:\Users\Addison\Documents\Visual Studio 2010\Projects\Source\Client\Debug\TinyXML.lib
    6>  The system cannot find the path specified.
    6>  Moc'ing QtButtonPropertyBrowser.h...
    6>  The system cannot find the path specified.
    6>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 3.
    5>  Moc'ing InterfacePointF.h...
    5>  The system cannot find the path specified.
    5>  The system cannot find the path specified.
    5>  The system cannot find the path specified.
    5>  The system cannot find the path specified.
    5>  The system cannot find the path specified.
    5>  Moc'ing InterfaceLineEdit.h...
    5>  Moc'ing InterfaceInt.h...
    5>  Moc'ing InterfaceDouble.h...
    5>  Uic'ing formProprietiesDialog.ui...
    5>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 3.
    8>  CommonLib.vcxproj -> C:\Users\Addison\Documents\Visual Studio 2010\Projects\Source\Client\Debug\CommonLib.lib
    9>------ Build started: Project: Client, Configuration: Debug Win32 ------
    9>  Uic'ing formClient.ui...
    9>  The system cannot find the path specified.
    9>  Moc'ing AboutDialog.h...
    9>  The system cannot find the path specified.
    9>  Moc'ing TreeView.h...
    9>  The system cannot find the path specified.
    9>  Moc'ing Client.h...
    9>  The system cannot find the path specified.
    9>  Moc'ing ToolBarWorld.h...
    9>  The system cannot find the path specified.
    9>  Moc'ing ToolBarViewer.h...
    9>  The system cannot find the path specified.
    9>  Rcc'ing Client.qrc...
    9>  The system cannot find the path specified.
    9>  Uic'ing formConsoleAreaWidget.ui...
    9>  The system cannot find the path specified.
    9>  Uic'ing formListViewWidget.ui...
    9>  The system cannot find the path specified.
    9>  Uic'ing formNamesListWidget.ui...
    9>  The system cannot find the path specified.
    9>  Uic'ing formScriptWidget.ui...
    9>  The system cannot find the path specified.
    9>  Uic'ing formTreeViewWidget.ui...
    9>  The system cannot find the path specified.
    9>  Uic'ing formAbout.ui...
    9>  The system cannot find the path specified.
    9>  Uic'ing formProperties.ui...
    9>  The system cannot find the path specified.
    9>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 3.
    ========== Build: 3 succeeded, 6 failed, 0 up-to-date, 0 skipped ==========

    • Moved by Sean Jenkin Wednesday, June 29, 2011 3:50 PM (From:MSDN, TechNet, and Expression Profile and Recognition System Discussions)
    Monday, June 27, 2011 1:55 PM

Answers

  • In Visual Studio go to Tools/Options then Project and Solutions/Build and Run section. You have a drop down box for increasing build verbosity that will help you reproduce what command is causing the problem.

    With MSbuild on the command line you can use /verbosity:<level>   q[uiet], m[inimal],n[ormal], d[etailed], and diag[nostic]


    Windows C++ Team Software Development Engineer in Test
    • Marked as answer by Rob Pan Wednesday, July 06, 2011 3:24 AM
    Thursday, June 30, 2011 6:06 AM