[gdal-dev] Strange error on gdalAllRegister()

Frank Warmerdam warmerdam at pobox.com
Fri Jul 1 23:12:08 EDT 2011


On 11-07-01 04:29 PM, Rodolfo Bonnin wrote:
> Hello All,
>
> I'm writing two new drivers ( For ALOS PRISM and AVNIR-2 ) and I'm trying to
> add them to the list of drivers.
>
> I've added them to gdal_frmts.h:
>
> void CPL_DLL GDALRegister_PRISM(void)
> void CPL_DLL GDALRegister_AVNIR2(void)
...
> gdalallregister.cpp: In function 'void GDALAllRegister()':
> gdalallregister.cpp:483: error: 'GDALRegister_AVNIR2' was not declared in this
> scope
> gdalallregister.cpp:484: error: 'GDALRegister_PRISM' was not declared in this scope

Rodolfo,

I hope you actually terminated the prototypes in gdal_frmts.h with a
semi-colon!  Things should be working if the right copy of gdal_frmts.h
is being pulled into gdalallregister.cpp.  I'm not sure why you are
having problems.

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