I'm trying to compile a solution on Visual Studio 2005 under Windows XP.
The solution builds fine in Debug configuration, however, when I try to build
it in release, I get 80 errors about GdiplusTypes.h being unable to find
'min' and 'max.'
Error 6 error C3861: 'min': identifier not found c:\program files\microsoft
visual studio 8\vc\platformsdk\include\GdiplusTypes.h 459
Error 7 error C3861: 'max': identifier not found c:\program files\microsoft
visual studio 8\vc\platformsdk\include\GdiplusTypes.h 460
I've searched my whole solution for anywhere we might have #undef'ed min and
max, as well as any cases of #define NOMINMAX before #include-ing <gdiplus.h>
and didn't find anything.
Certainly, I would expect that if VS couldn't find these identifiers in
Release configuration, it wouldn't be able to find them in Debug
Has anyone come across this or a similar problem before? Any other ideas as
to how I might be able to track this down?
I'd turn the situation around and try to identify where the debug
build is picking up its definition from - once you know that it might
be easier to find why the release build isn't finding the same
Have a look at