简体   繁体   English

Visual Studio 2010中C程序的调试失败

[英]Debug fails for C program in Visual Studio 2010

I am a beginner trying to write a C program in Visual Studio 2010. I have created a new project and have copied my code into the empty .cpp page that appeared. 我是一个初学者,试图在Visual Studio 2010中编写C程序。我创建了一个新项目,并将代码复制到出现的空.cpp页中。 The build is unsuccessful and when I try to debug, I get the following error message: 生成不成功,当我尝试调试时,收到以下错误消息:

Unable to start program "c:\\users---\\visual studio 2010\\Projects\\Homework\\Debug\\Homework.exe. The system can not find the file specified. 无法启动程序“ c:\\ users --- \\ visual studio 2010 \\ Projects \\ Homework \\ Debug \\ Homework.exe。系统找不到指定的文件。

How do I fix this? 我该如何解决?

The build must be successful in order to create the exe file so you can start your application and debug. 为了创建exe文件,构建必须成功完成,以便您可以启动应用程序并进行调试。 Check for compile errors and solve them before building your project. 在构建项目之前,请检查编译错误并解决它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM