What is the difference between 'Debug' mode and 'Release' mode in VS2008 compiler?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Good Morning all,<br/><br/>Recently I prepared a program which links with a static library. It works fine in Debug mode. But when I switched to Release mode, it generates a compiler error: fatal error C1083 Cannot open include file xxxx.h which is a header file I put in /C++VS2008/include directory. If I copy the header file and put it in the program directory, the program compiled and works. Why the compiler in Release mode did not see the hander file in the include directory and it sees the file in Debug mode? I check the MS web and find the possible cause of this problem is "An #include directive uses double quotation marks around a path specification, which causes the standard directories to be skipped". But I am not so sure what does it mean. Can anyone elaborate it for me or explain the difference between the Debug and Relase mode? Thanks and have a great day. By the way, I only use file name in my include statement, there is no path.<br/><br/>Tom Lin<br/>

View the full article
 
Back
Top