How to fix up this problem?
When I first run a simple 'hello world' program from recently downloaded Visual C++ 2005 Express Beta 2 like the following:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello, World" << endl;
return 0;
}
There was an error message appearing that doesn't make sense to me:
Build started: Project: Hello, Configuration: Debug Win32
Embedding manifest...
Project : error PRJ0003 : Error spawning 'cmd.exe'.
Build log was saved at "file://e:\My Documents\Visual Studio 2005\Projects\Hello\Hello\Debug\BuildLog.htm"
Hello - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Is there anyone who can tell me what's going wrong?
thanks.
Hi,
I tried that sample and it works perfectly...
I searched MSDN and found these possible reasons for the error:
Low system resources. Close some applications to resolve this.
Insufficient security privileges. Verify that you have sufficient security privileges.
The executable paths specified in VC++ Directories do not include the path for the tool that you are attempting to run.
For makefile projects, you are missing a command to run on either Build Command Line or Rebuild Command Line.
Or it might be caused by a faulty installation...
cheers,
Paul June A. Domag
Hi Paul,
I have experienced the same problem when I use that same piece of code using makefiles. I'm writing my first program using Visual Studio and don't exactly know how to continue. Also, I do not have any commands for Build Command Line or Rebuild Command Line as you mentioned in the last bullet of possible reasons of error. Could you kindly tell me what to input in those fields for the compiler to build the project?
Thanks,
Anshul Tandon