Tuesday, February 19, 2013

IntelliSense: PCH warning: header stop cannot be in a macro or #if block. An intellisense PCH file was not generated

From my experience, when I cleaned my project and built, there was no error or even warning on the output window. However, after I checked on the ErrorList window, there is error "IntelliSense: PCH warning: header stop cannot be in a macro or #if block. An intellisense PCH file was not generated". It is because it is looking for the pre-compiledheader. The solution is under project property->C/C++ -> Precompiled Headers and make the precompiled Header becomes "Not using precompiled header". If you're sure that you have already set to not using precompiled header and still got that error, the suspect is the library you're using. For example, I use the library gltools.lib. In the gltools project, it is still not set to "not using precompiled header". So it got that error

2 comments: