Beta 2 error, Project : error PRJ0003 : Error spawning 'cmd.exe'.

Hi, I've just installed the new visual c++ beta 2, and I get this weird error when compiling a project.


------ Build started: Project: FindWeights, Configuration: Debug Win32 ------

Embedding manifest...

Project : error PRJ0003 : Error spawning 'cmd.exe'.

Build log was saved at "file://c:\My\Active\FindWeights\Debug\BuildLog.htm"

FindWeights - 1 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Any idea what I can do to fix this

Thanks



Answer this question

Beta 2 error, Project : error PRJ0003 : Error spawning 'cmd.exe'.

  • yithoong

    Edit: nevermind

  • rlasker3

    Even more for the record, setting the environment PATH variable in the control panel to the same value as the one echo %path% produces in the visual studio shell fixes this issue.
  • sheikh78

    the values for all the paths set in the tools->options->projects->VC++ Directories dialog are stored in a file called "VCComponents.dat" in the local application data directory for Visual Studio (e.g. x:\Documents and Settings\<username>\Local Settings\Application Data\Microsoft\Visual Studio\8.0\VCComponents.dat). if you remove this file, the settings will all be set back to default, which should make the problems encountered by the folks on this thread go away, though you will lose any modifications you have made to these paths.

    it is possible that these problems have arisen due to the VCComponents.dat file not being removed between installs of different versions of VS 8 (for instance, beta 1 and beta 2). to the best of my knowledge the VS installer/uninstaller doesn't remove this file.

    josh

  • mattcushing

    Have you done a "clean" install of Beta 2 Or was there some other beta products installed

  • vj78

    We'd like to investigate this issue but we need more information.

    Can you set the opton (from Tools.Options.VC++Directoris) to dump the environment block in the build log and attach the build log to this thread

    Thanks,
    Tarek

  • dknapp

    I have installed the full Visual Studio 2005 Professional
    I never installed any beta

    I previously had Visual Studio 2002 (vc7)
    which was uninstalled before installing VS 2005

    I have the file
    C:\Documents and Settings\braunal01\Local Settings\Application Data\Microsoft\VisualStudio\7.0\VCComponents.dat

    I do not have file
    C:\Documents and Settings\braunal01\Local Settings\Application Data\Microsoft\VisualStudio\8.0\VCComponents.dat

    The problem still occurs when I sent the 7.0 folder to the recycle bin


  • renemoris

    Hi, I'm also experiencing this error when compiling. The above solution with the embed manifest worked for one of the projects im compiling, but not for another one. They are both experiencing the exact same error, so im not sure why it would work for one and not the other.
    The project that is still experiencing an error is very large, and has lots of subfolders/files, but ive checked all of them to make sure that they all have embed manifest off.
    This is the only error im getting when compiling:

    ------ Build started: Project: Torque Shader Engine, Configuration: Release Win32 ------

    Performing Custom Build Step

    Project : error PRJ0003 : Error spawning 'cmd.exe'.

    Build log was saved at "file://c:\tse\engine\out.VC7.RELEASE\BuildLog.htm"

    Torque Shader Engine - 1 error(s), 0 warning(s)

    ========== Build: 0 succeeded, 1 failed, 4 up-to-date, 0 skipped ==========


    Im running win XP SP 2. I never had the first beta of the express compiler installed, so I didnt have to uninstall anything. I do have a lot of directories linked with this project, does that make a difference (I modified the config file to include the directories)
    Thanks.
    JS


  • Thelios

    I've had the same problem, just a bit different. I've had an error saying:

    1>Embedding manifest...

    1>mt.exe:general error c101008e:Failed to create the manifest from the identity string: "My App, type=win32, version=1.0.0.0, processorArchitecture=x86". The operation failed.

    1>Project : error PRJ0002 : Error result 31 returned from 'D:\Gal\C++\Visual C++ 2005\Installed\VC\bin\mt.exe'.

    1>Build log was saved at "file://d:\Gal\C++\Visual C++ 2005\Installed\My Projects\Gal's Botter\Gal's Botter\Debug\BuildLog.htm"

    1>Gal's Botter - 1 error(s), 0 warning(s)



    P.S - I didn't install any other beta and the only other C++ I have is Microsoft Visual C++ 6. Is it possible that it clashed


  • Krishna Samaga

    Just for the record: I am running into the exact same problem with a clean install of beta 2 after removing all the beta 1 components.
  • spells

    Hai

    I got same error with cmd.exe when i said manifest=no and debugged then no error
    ========== Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========

    The log file is:
    Build Log

    Build started: Project: Ex1_01, Configuration: Debug|Win32


    Command Lines
    Creating temporary file "f:\testFiles\Test1\Ex1_01\Ex1_01\Debug\RSP00001935243144.rsp" with contents
    [
    /out:..\debug\Ex1_01.exe.manifest /manifest

    .\Debug\Ex1_01.exe.intermediate.manifest
    ]
    Creating command line "mt.exe @f:\testFiles\Test1\Ex1_01\Ex1_01\Debug\RSP00001935243144.rsp /nologo"
    Output Window
    Creating manifest...
    Results
    Build log was saved at "file://f:\testFiles\Test1\Ex1_01\Ex1_01\Debug\BuildLog.htm"


    Ex1_01 - 0 error(s), 0 warning(s)

    but when i compiled (F5) i am getting

    'Ex1_01.exe': Loaded 'F:\testFiles\Test1\Ex1_01\debug\Ex1_01.exe', Symbols loaded.
    'Ex1_01.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
    'Ex1_01.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
    'Ex1_01.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcp80d.dll', No symbols loaded.
    'Ex1_01.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcr80d.dll', No symbols loaded.
    'Ex1_01.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
    The program '[2688] Ex1_01.exe: Native' has exited with code 0 (0x0).

    The problem is i can see command prompt it is coming and closing by itself in a fraction of moment


  • EastNayl

     andrewness wrote:

    Hi, I've just installed the new visual c++ beta 2, and I get this weird error when compiling a project.


    ------ Build started: Project: FindWeights, Configuration: Debug Win32 ------

    Embedding manifest...

    Project : error PRJ0003 : Error spawning 'cmd.exe'.

    Build log was saved at "file://c:\My\Active\FindWeights\Debug\BuildLog.htm"

    FindWeights - 1 error(s), 0 warning(s)

    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


    Any idea what I can do to fix this

    Thanks



    Project -> "Your project" Properties -> Configuration Properties-> Manifest Tool ->Input and Output -> Embed Manifest = No

    The manifest file will be creating.

    P.

    ------------------
    http://cpp.g5.pl - forum dla polskich programistow

  • Kevinmi

    Hi,

    Do you happen to have a really large environment (> 15KB or so)

    Ronald Laeremans
    Visual C++ team

  • Pavithra

    To whom this may concern,

    I am getting the same error but with a different file;

    ------ Build started: Project: Netmsg, Configuration: Debug Win32 ------

    Creating Type Library...

    Project : error PRJ0003 : Error spawning 'midl.exe'.

    Creating browse information file...

    Microsoft Browse Information Maintenance Utility Version 8.00.50215

    Copyright (C) Microsoft Corporation. All rights reserved.

    BSCMAKE: error BK1506 : cannot open file '.\Debug\ColorOptions.sbr': No such file or directory

    Build log was saved at "file://e:\Projects\Debug\BuildLog.htm"

    Netmsg - 2 error(s), 0 warning(s)

    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    What is going wrong


  • JON_STUDENT

    I once run into the same problem for several days with VS .NET 2003.  I did try fix/reinstall VS .NET 2003.  It does not work at all.  The problem remains until I add the following entries into VC++ list of Excutable Directories in VS's Options dialog:

    $(VCInstallDir)bin
    $(VSInstallDir)Common7\Tools\bin\prerelease
    $(VSInstallDir)Common7\Tools\bin
    $(VSInstallDir)Common7\Tools
    $(VSInstallDir)Common7\IDE

    The Options dialog is off Tools menu and it's in Projects->VC++ Directories page.

    Hope this would be any helpful.


  • Beta 2 error, Project : error PRJ0003 : Error spawning 'cmd.exe'.