“The system cannot find the file specified” when running C++ program

后端 未结 12 1691
庸人自扰
庸人自扰 2020-11-29 08:30

I installed Visual Studio 2010. I wrote a simple code which I\'m sure is correct but unfortunately, when I run the code, I get the error below.

Here is my code:

12条回答
  •  迷失自我
    2020-11-29 09:11

    I came across this problem and none of these solution worked 100%

    In addition to ReturnVoid's answer which suggested the change

    Project Properties -> Linker -> Output file -> $(OutDir)$(TargetName)$(TargetExt)

    I needed to changed

    Project Properties -> C/C++ -> Debug Information Format -> /Zi

    This field was blank for me, changing the contents to /Zi (or /Z7 or /ZI if those are the formats you want to use) allowed me to debug

提交回复
热议问题