开发者

Visual C++ 2010 Express Compile Error

I am experimenting with C++ but am having trouble compiling with Visual C++ 2010 Express through the command line. I have been doing this without problem for several days, but now when typing cl /EHsc program.cpp into the Visual Studio Prompt, the program is not compiled. It instead 开发者_如何学Gooutputs the following:

/EHsc
program.cpp
0

I used the following page as my primary reference: http://msdn.microsoft.com/en-us/library/ms235639.aspx

Any help would be great since I have had no luck on google. Thanks a lot, and please excuse the simple question.


I have a guess at what is in program.cpp. I bet it is a small program that prints the values of argv[i] in a for() loop. If that's anywhere accurate, you probably got yourself into trouble earlier with a wrong command line and accidentally created cl.exe instead of program.exe.

Well, it works. Type "del cl.exe" to get rid of it.

Do consider using the "visual" part of Visual Studio. The IDE has lots of ways to help you fall into the pit of success. Start that with File + New Project.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜