[Gdal-dev] compile error GDAL 1.3.0
Dylan Beaudette
dylan at iici.no-ip.org
Thu Oct 6 12:52:06 EDT 2005
On Thursday 06 October 2005 07:19 am, Frank Warmerdam wrote:
> On 10/5/05, Dylan Beaudette <dylan at iici.no-ip.org> wrote:
> > I get the error:
> > --------------
> > gcore/gdal_misc.cpp:1308: error: `OGRSpatialReference' undeclared (first
> > use this function)
> > gcore/gdal_misc.cpp:1308: error: (Each undeclared identifier is reported
> > only once for each function it appears in.)
> > gcore/gdal_misc.cpp:1308: error: syntax error before `,' token
> > gcore/gdal_misc.cpp:1311: error: `oSRS' undeclared (first use this
> > function) gcore/gdal_misc.cpp:1312: error: `oSRSGeogCS' undeclared (first
> > use this function)
> > ----------------
> >
> > any ideas ?
>
> Dylan,
>
> That is very stange. gdal_misc.cpp 1.70 (in GDAL 1.3.0) includes
> ogr_spatialref.h which includes the OGRSpatialReference declaration.
> I don't see how OGRSpatialReference could be not defined in
> gdal_misc.cpp. You might want to check if there is a truncated
> ogr_spatialref.h sitting around in /usr/local/include or the local
> build for some reason.
>
> You might also want to work from 1.3.1 if you are setting up a new
> system.
>
> Best regards,
> --
Thanks for the quick reply Frank.
Just to verify that ogr_spatialref.h was defined in gdal_misc.cpp, i tried:
dylan at test:~/src/gdal-1.3.1$ grep
ogr_spatialref.h /home/dylan/src/gdal-1.3.1/gcore/gdal_misc.cpp
#include "ogr_spatialref.h"
...looks fine there...
However, GDAL 1.3.1 dies with the same error during make. I have tried to
compile with a slightly different .configure step:
./configure --with-png=internal --with-jpeg=internal \
--with-gif=internal --with-libtiff=internal \
--with-geotiff=internal --with-libz=internal\
--without-pg --without-ogdi
... but i still get the same error.
of note the compiler is gcc-3.3.6
any ideas?
thanks!!
Dylan
--
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341
More information about the Gdal-dev
mailing list