[gdal-dev] Bug in GDALDriver? Not setting poDriver in GDALDataset

Frank Warmerdam warmerdam at p...
Sat Dec 15 10:41:43 EST 2001


Simon Perkins wrote:

> Simon Perkins wrote:
> > int, GDALDataType, int)'
> > pnmdataset.o(.text+0x4a8): undefined reference to
> > `RawRasterBand::RawRasterBand(GDALDataset *, int, _IO_FILE *, 
> unsigned int, int,
> > int, GDALDataType, int)'
> > /n/toaster/u/simes/src/gdal/gdal.a(sar_ceosdataset.o)(.text+0x1b58): more
> > undefined references to `RawRasterBand::RawRasterBand(GDALDataset *, int,
> > _IO_FILE *, unsigned int, int, int, GDALDataType, int)' follow
> > collect2: ld returned 1 exit status
> > make[1]: *** [gdalinfo] Error 1
> > make[1]: Leaving directory `/nh/toaster/u/simes/src/gdal/apps'
> > make: *** [apps-target] Error 2
> >
> > Looks like MFFDataset needs to be updated for the new constructors in
> > RawRasterBand?
> >
> > Sy
> 
> Oops - please ignore the header here - I was halfway through composing 
> another
> mail complaining that GDALDriver::Create() doesn't set poDriver in the
> GDALDataset it creates... But this bug seemed more important!
> 


Sy,

I have corrected gdaldriver.cpp to set the poDriver on datasets if it wasn't
set previously.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at p...
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