开发者

can't run vs 2008 or 2010 on windows 7

I just installed windows 7 and because I wish to learn more C/C++ I've tried to install VS 2008 or VS2010 beta. On both of them I get the same message error. I had only one version of each one installed at one time.

this is my code:

#include <stdio.h> 
int main(){
 printf("hello world");
 return 0;
}

but when I hit debug, I get the following message:

Unable to start program 'c:\users....\Debug\helloworld.exe'.

The system cannot find the开发者_如何学JAVA file specified.


It looks to me like your problem is more with output file destinations or the %PATH% environment variable than Visual Studio -- your .vcproj is depositing the .exe, or some file upon which it depends, where the debugger can't find it.

My first suggestion is to look at the "Debugger" settings of that project's Properties, and make sure that it's running from the correct Working Directory -- that is to say, that its working directory is the same place that the .vcproj is configured to put the compiled .exe.


On VS 2008, Tools -> Options -> Projects and Solutions -> Build & Run -> Choose 'Always Build' for the 'On Run, when projects are out of date:' part. Thats the solution for the same problem of mine


I can confirm you that VS2008 is compatible witn Windows 7. I'm running it now. Check that you have rights to read/write in that folder.


I am working with VS 2008 and Windows 7 for the past 4/5 months without any signle issues. Might be some configuration issu?

Looking at the error it seems your program is complied but not able to run(?)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜