   File not found in release build but okay in debug build
  My game compiles in debug mode but when I try building it in release mode, I get the following error:fatal error C1083: Cannot open include file: ''Cg\cgGL.h'': No such file or directoryWhy is this happening and how to I get it to work? 
  Only thing I can think of, it may not be there at all, neither in the release version nor in the debug version. Maybe there''s something like:#ifdef _DEBUG#include <Cg\blabla.h>#else#include <Cg\cgGL.h>#endifin one of the headers included in your project. That way the fact that the file isn''t there would only become apparent in the release version. Just a thought.;  I've checked if cgGL.h exists in that directory on my computer and it does. I haven't used any #if-#else blocks like that you described. All mine go like:#ifndef _blah_h_#define _blah_h_#endif   [edited by - Billy Lee on February 17, 2004 10:49:30 AM];  I''m guessing your using MS Visual Studio?  Check the project settings for release mode.  Debug mode may be specifying additional include directories that release mode doesn''t know about.  You may also want to check the the "Cg" folder on your computer is specified in the visual studio include directories list rather than the project settings include directories list.  That way every project you create will have access to it rather than just the project you''re currently working on. ;  Thanks. I thought that might have been the problem but wasn''t sure because it wasn''t in the debug part but that compiled. I now get 133 LNK2001 errors to do with OpenGL, such as:particles.obj : error LNK2001: unresolved external symbol __imp__glEndList@0I have the following path set up:C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDEso I don''t know why it''s complaining. Any ideas? And yes, I''m using Visual Studio. ;  Don''t worry. I''ve just noticed some OpenGL libs that weren''t in the project settings for the release build. I''ve only got 3 errors now. ;  Yep, I''ve got it working now. It runs fine but the particle system is a little messed up now - dead particles now reappear. 