[Gdal-dev] compile error GDAL 1.3.0

Frank Warmerdam warmerdam at pobox.com
Thu Oct 6 10:19:31 EDT 2005


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,
--
---------------------------------------+--------------------------------------
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