[Gdal-dev] Problem compiling under VS.NET
Thom DeCarlo
t.r.decarlo at larc.nasa.gov
Thu Nov 18 13:35:30 EST 2004
Curiouser and curiouser...
I commented out the offending section of tiffio.h and got gtiff to
successfully compile. But, it hit another snag further along in the build.
Within the frmts/vrt section the vrtwarped.cpp is including gdalwarper.h.
That file isn't in the include paths. It is in gdal/alg.
I added to the EXTRAFLAGS variable in frmts/vrt/makefile.vc
EXTRAFLAGS = -I..\raw -I..\..\alg
And this seems to have worked. (or, at least it compiled.)
Thom
OBTW, I cannot get to the maptools.org website to download a new tarball.
The MapTools.org homepage says they are recovering from an attack this
morning.
--
Thom DeCarlo
-------------------------------------------------------
Man will occasionally stumble over the truth,
but most of the time he will pick himself up and continue.
-- Winston Chruchill
> -----Original Message-----
> From: Norman Vine [mailto:nhv at cape.com]
> Sent: Thursday, November 18, 2004 12:48 PM
> To: Thom DeCarlo
> Subject: RE: [Gdal-dev] Problem compiling under VS.NET
>
> Thom DeCarlo writes:
> >
> > Ok, I think I found a problem. Something changed in frmts/gtiff/libtiff
> > between the time I grabbed the tarball on 12OCT04 and the tarball from
> > yesterday. The "#include <iostream.h>" was added to tiffio.h during that
> > month.
> >
> > I found <iostream> in 4 different files within gdal, but <iostream.h> is
> > only in tiffio.h. Isn't mixing ANSI Standard and Non-ANSI libraries
> > verboten?
> >
> > Can someone tell me what is needed to get the new version of gtiff to
> > compile?
>
> Hmm....
>
> My code repository is from CVS as of 14-Nov-2004
>
> and it looks to me as if one can comment out that section of tiffio.h
>
> as results of grepping my GDAL directory shows
>
> Found 0 lines with R-E "TIFFStream" in d:\src\gdal\**\*.c*
>
> Found 2 lines with R-E "TIFFStream" in d:\src\gdal\**\*.h*
> d:\src\gdal\frmts\gtiff\libtiff\tiffio.h: extern TIFF*
> TIFFStreamOpen(const char*, ostream *);
> d:\src\gdal\frmts\gtiff\libtiff\tiffio.h: extern TIFF*
> TIFFStreamOpen(const char*, istream *);
>
> ??????
>
> Norman
>
> ===== from end of tiffio.h =====
>
> #if defined(c_plusplus) || defined(__cplusplus)
> # include <iostream.h>
> extern TIFF* TIFFStreamOpen(const char*, ostream *);
> extern TIFF* TIFFStreamOpen(const char*, istream *);
> #endif
>
>
More information about the Gdal-dev
mailing list