tags:

views:

117

answers:

3

Hello, whenever I compile my project in the Release build I get this error:

Error   29 fatal error C1083: Cannot open include file: 'NX_Win32Wrapper.h': No such file or directory

I get another one just like this, just in a different file (the error complains about a different file). The file in the second error is whichever I included first (is on top of the include list), the same goes for the first error, but its right after:

(this is the "main".cpp file,where main() is and GameV2 is my project name

 #include "stdafx.h"
 #include "GameV2.h"

I know there is now code, but I think I'd have to post everything :P Do you have any suggestion what should I check?

+2  A: 

You should check the "Additional include directories" - the list should usually be the same for "Debug" and "Release".

sharptooth
+3  A: 

It seems that you're using Visual Studio.

Check the include directories in project properties, for Release target. You set the proper include directories only for Debug target.

Cătălin Pitiș
A: 

Yes, that was the problem, thanks guys

n3Xus
You should accept one of the answers.
Anteru
@n3Xus: This isn't just another web forum. With this answer you've shown ignorance towards stackoverflow.com and disrespect towards those who took the time to think about your problem and answer you. Take 15mins to understand how this place works or the value of the answers you'll get will considerably decrease when you ask more questions.
sbi