[Gdal-dev] hdf4, hdf-eos and gcc 3.4 issues

Norman Vine nhv at cape.com
Thu Jun 24 08:41:25 EDT 2004


Vincent Schut writes:
> 
> On Wednesday 23 June 2004 19:51, Andrey Kiselev wrote:
> > On Wed, Jun 23, 2004 at 09:09:13PM +0400, Andrey Kiselev wrote:
> > > > - the include of HdfEosDef.h from hdf4dataset.cpp doesn't work,
> > > > because gcc can't find it. After changing the compile line to
> > > > include '-I./hdf-eos', this was solved. I however don't know the
> > > > appropriate place to add this (GNUmakefile?).
> > >
> > > I'm forgot to commit the new Makefile along with the new code, sorry.
> > > Will be fixed very soon.
> >
> > I have commited the required changes. Please, test again.
> 
> Finds the includes now, but still get this error:
> 
> make[3]: Entering directory `/usr/local/src/gdal/frmts/hdf4/hdf-eos'
> /bin/sh ../../../libtool --mode=compile gcc -c -I../../../port -Wall  -O2 
> -DCPL_MULTIPROC_PTHREAD    -I. EHapi.c -o ../../o/EHapi.o
>  gcc -c -I../../../port -Wall -O2 -DCPL_MULTIPROC_PTHREAD -I. EHapi.c  -fPIC 
> -DPIC -o ../../o/.libs/EHapi.o
> In file included from EHapi.c:35:
> ./HDFEOSVersion.h:16:1: pasting ""@(#)## HDFEOS Version: "" and 
> "HDFEOSVERSION1" does not give a valid preprocessing token
> ./HDFEOSVersion.h:17:1: pasting ""@(#)## Build date: "" and "__DATE__" does 
> not give a valid preprocessing token
> ./HDFEOSVersion.h:17:1: pasting "__DATE__" and "" @ "" does not give a valid 
> preprocessing token
> ./HDFEOSVersion.h:17:1: pasting "" @ "" and "__TIME__" does not give a valid 
> preprocessing token


I believe the attached HDFEOSVersion.h should work

BTW It would help if you told us what system you are using
as well as the compiler

HTH

Norman



-------------- next part --------------
A non-text attachment was scrubbed...
Name: HDFEOSVersion.h
Type: application/octet-stream
Size: 974 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20040624/c1a22604/HDFEOSVersion.obj


More information about the Gdal-dev mailing list