|
Prev: copy file from network share
Next: Brand Watches DKNY Women's Leather Collection II watch #NY3450 Discount, Replica, Fake
From: Nick Meyer on 18 Apr 2008 10:56 Hi, 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 configuration either. Has anyone come across this or a similar problem before? Any other ideas as to how I might be able to track this down? Thanks, Nick Meyer
From: David Lowndes on 18 Apr 2008 15:12
>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 >configuration either. > >Has anyone come across this or a similar problem before? Any other ideas as >to how I might be able to track this down? Nick, 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 definition. Have a look at http://blogs.msdn.com/oldnewthing/archive/2008/04/10/8373617.aspx for some tips. Dave |