简体   繁体   中英

VS2010 C++ F7 doesn't create executable in 'debug'

I'm beginner at programming and I've got this problem with debugging. My programme builds successfully but after I debug it, I just get this error:

"unable to start program 'projects\\workspls\\Debug\\workpls.exe'. System cannot find this file"

I already read a lot about it and I believe I'm supposed to change certain paths in Solutions Properties to match since there is no executable created in 'debug' or any other place after building program. But every time I go to Solutions Properties I get confused and don't have a clue what to change. Would appreciate it if anyone could help me.

if your output said "Finished generating code", then look at the file path where visual studio wrote the exe.

My exe files were being written relative to the solution, not to the various projects where I was writing the code (as I had expected).

But until I read the previous answers, I didn't think to look anywhere except under the project in the debug directory - the usual place for visual studio.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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