[Gdal-dev] Re: Problem compiling under VS.NET

Frank Warmerdam warmerdam at pobox.com
Mon Nov 22 23:31:01 EST 2004


Thom DeCarlo wrote:
> Tried that. I've recently "upgraded" from VS6 to VS.NET and this might be
> the first time I've tried to recompile gdal using the new compiler.

Thom,

I'm afraid that gdal 1.2.5 has gone out with the same problem.

> It looks like I don't have a full installation of the compiler. The old
> iostream libraries and headers (iostream.h, fstream.h, strstream.h, etc.)
> don't exist anywhere in my computer. The new, ANSI Standard headers (without
> the .h extension) are in the Vc7/include directory. But, of course, it's not
> as easy as simply removing the ".h" from the #include line. The compiler
> then complains about:
>    C++ exception handler used, but unwind semantics are not enabled. Specify
> /EHsc

The first step is to change iostream.h to iostream.  Andrey has fixed this in
the upstream libtiff, but once I again I failed to update GDAL with the
very latest libtiff fixes.

The second step is to ensure that the appropriate build switches are in use.
In VC6 the /GX switch is needed for proper C++ unwind semantics, and I have
(post 1.2.5 release) added this to the default nmake.opt file that is
distributed. I did a build with VC7 this morning and I didn't notice the
problems you are encountering, but then I also didn't update from CVS except
in the OCI driver where I was working.  The gist of it is though that it
shouldn't take much to get things working under VC7 at your end since I do
use that on one of my XP boxes.

Sorry for missing this and thus distributed 1.2.5 with some VC7 build bugs.

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list