NeHe samples building, but no exe found.

Started by
-1 comments, last by Naked Shooter 11 years, 8 months ago
I'm going through the Beginning OpenGL Game Programming book, and I downloaded the samples from the NeHe website because I'm missing the CD.

I'm using VS. I tried to create a new solution, import the vc++ projects and build them. The build works, but the apps cannot run because there is no .exe generated in the Debug folder. Does anyone know what might be causing this problem?


Edit: Sorry, never mind, I should have looked at build output more carefully. It gave me the following warning:
warning MSB8012: TargetPath(C:\Users\...\Visual Studio 2010\Projects\OpenGLSampleApp\Debug\simple.exe) does not match the Linker's OutputFile property value (D:\Tutorials\Beginning OpenGL Game Programming code\OpenGL 3.0\chapter_1\simple\simple.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).[/quote]

Setting the Output File value in Linker settings to:
$(SolutionDir)$(Configuration)\$(ProjectName)$(TargetExt)[/quote]
Seems to work. I wonder if this solution is ok/good practice?

This topic is closed to new replies.

Advertisement