开发者

Visual C++ 2010 error. The system cannot find the file specified

I am trying to run a sample tutorial on Visual C++ 2010 but it keeps giving me this error:

Unable to start program C:\Users\SVS\Documents\Visual Studio 2010\Projects\3DTrialOne\Debug\3DTrialOne.exe 
The system cannot find the file specified.

I have created a new project and added the source code into the new one. I have created a new project from existing code too. It still has the same error. Should I change anything in the configuration settings开发者_StackOverflow社区?

I have tried to point the working path in the configuration settings to the debug folder (just shooting blindly), but it still has the same error.

EDIT 2: Someone had the same problem with Visual Studio and posted this, Having trouble with MS Visual Studio 2010 in OpenGL.org. Anyone know what this means?


The error indicates you're trying to run an exe file which isn't on the machine. (or at least not at the path specified)

Try compiling the project. If there are build errors, post those.

If you're able to compile the project ok; then there's a problem with where VS thinks the executable to launch is. ( Try looking under settings, output directory )


For me, my antivirus software was conflicting with the process of creating the exe, so before I opened visual studio, I would disable my antivirus. Then I would create a new project because otherwise the exe for that project would already be removed by antivirus. But if your worrying about having to start a new project each time, you don't have to. But just do it for the projects that the issue has already arisen in. Make sure to disable your antivirus each time, and THEN open visual studio.

Sorry if I am of no help, but this solved my issue.


The best way is to change "\" to "/", it solved my issue and I caught at while I looked toward the warning.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜