I am using Microsoft's Visual Studio 2008 Express Edition and trying to compile simple .cpp programs on their command prompt window. There are no mistakes in my program, but it always comes up with the error:
"cannot open compiler generated file 'program.obj': permission denied"
This is when I use the "cl /EHsc" prompt.
Any idea as to how I can fix this?
Your user account probably doesn't have permissions to access wherever you are storing the .obj files and stuff...either that or the file might already be in use or something.