[gdal-dev] netcdf option build error

Jeshua Lacock jeshua at OpenOSX.com
Wed Apr 30 13:46:57 EDT 2008

On Apr 29, 2008, at 2:23 PM, Jeshua Lacock wrote:

> GDapi.c: In function 'GDsdid':
> GDapi.c:10873: error: 'MAX_VAR_DIMS' undeclared (first use in this  
> function)
> GDapi.c:10873: error: (Each undeclared identifier is reported only  
> once
> GDapi.c:10873: error: for each function it appears in.)
> GDapi.c:10873: warning: unused variable 'dims'
> make[4]: *** [../../o/GDapi.o] Error 1
> make[3]: *** [lib-hdfeos] Error 2
> make[2]: *** [hdf4-install-obj] Error 2
> make[1]: *** [frmts-target] Error 2
> make: *** [gdal] Error 2

Can anyone inform me where MAX_VAR_DIMS is expected to be? I cannot  
make sense of it.

GDapi.c includes "mfhdf.h" (opposed to <mfhdf.h>), however, there is  
not any "mfhdf.h" in the GDAL branch. Copying "mfhdf.h" to /frmts/hdf4/ 
hdf-eos does not help either, nor does including "hdf4_netcdf.h".

This would help me figure out what is going on a great deal.


Jeshua Lacock, Owner
phone: 877.240.1364

More information about the gdal-dev mailing list