[Gdal-dev] Re: Linking the GDAL lib to a Visual C++ 6 project

Arnaud beaudele at yahoo.fr
Tue Mar 6 09:35:21 EST 2007

Mateusz Loskot <mateusz <at> loskot.net> writes:
> The problem is that MFC defines 'new' as a preprocessor definition,
> when building in debug mode:
> #ifdef _DEBUG
> #define new DEBUG_NEW
> #undef THIS_FILE
> static char THIS_FILE[] = __FILE__;
> #endif
> So, all C++/STL headers should be included *before* any MFC header.
> Cheers

I forgot that part. that's what I did also to solve the compilation problem.
Thanks a lot, Mateusz.


More information about the Gdal-dev mailing list