Another question that was not mentioned here is that when debugging the project can create, but it will not work, showing an error message in the question.
If so, another view option is the output file compared to the target file. They must match.
A quick way to check the output file is to go to the project properties pages, then go to Configuration properties → Linker → General (In VS 2013 - the exact path may vary depending on the version of the IDE).
There is a parameter "Output file". If this is not $(OutDir)$(TargetName)$(TargetExt) , you may run into problems.
It is also discussed in more detail here .
source share