[Gdal-dev] GDAL CVS: dodsdataset.cpp error

Pericles S. Nacionales nacional at cbs.umn.edu
Wed Sep 15 03:01:25 EDT 2004

Hi folks,

While compiling gdal from cvs, I ran into the following error messages:

		from dodsdataset.cpp:28:
/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include/g++-v3/i686-pc-linux-gnu/bits/gthr-default.h:40:1: warning: this is the location of the previous definition
dodsdataset.cpp: In member function `void
DODSDataset::get_geo_info(DAS&, DDS&)':
dodsdataset.cpp:531: error: expected `)' before "value"
dodsdataset.cpp:535: error: no matching function for call to
../../ogr/ogr_spatialref.h:275: note: candidates are: OGRErr
OGRSpatialReference::SetFromUserInput(const char*)
make[2]: *** [../o/dodsdataset.o] Error 1
make[2]: Leaving directory `/home/pnaciona/src/gdal/frmts/dods'
make[1]: *** [dods-install-obj] Error 2
make[1]: Leaving directory `/home/pnaciona/src/gdal/frmts'
make: *** [frmts-target] Error 2

I got it to compile by commenting out lines 529-536 of dodsdataset.cpp:
    //Set a full coordinate system from "spatial_ref" in WKT or any user
    value = at->get_attr(spatial_ref);
    if( value != "" value != "None" )
        DBG(cerr << spatial_ref << ": " << value << endl);

        oSRS.SetFromUserInput( value );

Thought I'd let someone know...

-Perry N.

Pericles S. Nacionales <nacional at cbs.umn.edu>
University of Minnesota

More information about the Gdal-dev mailing list