So you have changed your $(OutDir)
variables in your project file and it is producing a bad path. Please go to your project's properties for the configuration/platform you're building. Then post the contents of the aforementioned variables along with the various $(Target...)
variables. It sounds like you might have probably missed a slash and so it isn't building paths properly. Note that there are Path
and Dir
properties and they must be properly built.
VS 2017 compiles but not creating executable in release mode.
Hello,
I am building and compiling a C++ application using VS 2017. In debug mode it builds , compile and create an executable. Although in release mode, the build process finish successfully, it does not create an executable. Here is the log:
The last lines of the log are:
5>Generating Code...
5>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(1216,5): warning MSB8012:
TargetPath(F:\cavewriting_ike\build\windows\cwapp\Release\CWApp.exe) does not match the Linker's OutputFile property value (F:\cavewriting_ike\bin\win32\CW.exe). This
may
cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
5>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(1218,5): warning MSB8012: TargetName(CWApp) does not match the Linker's OutputFile property value (CW). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
5>CWApp.vcxproj -> F:\cavewriting_ike\build\windows\cwapp\Release\CWApp.exe
5>Done building project "CWApp.vcxproj".
But if I go to the mentioned path, there is not CWApp.exe file.
Here are the project configuration settings:
Any ideas what I am missing?
Thanks
-
Michael Taylor 53,896 Reputation points
2022-01-31T15:42:26.613+00:00