[Gdal-dev] Compliation error with 1.2.0 on Linux

Susumu TANIMURA stanimura-ngs at umin.ac.jp
Sat Mar 13 19:33:47 EST 2004


Thank Frank, I got pass the compile error with removing
/usr/include/gdal.h, but still I could not complete the compilation.

Another error was given as followed.

g++ -Wall -O2 -m486 -fno-strength-reduce -I/usr/include -I/usr/include/include -I/usr/include -I/usr/include/include -I/usr/include -I/usr/include/include -I../../port -I../../gcore -I../../ogr -Ilibgeotiff -Ilibtiff -I../../port -c geotiff.cpp  -fP IC -DPIC -DPIC -o ../o/geotiff.o
geotiff.cpp: In function `struct TIFF * GTiffCreate(const char *, int, int, int, GDALDataType, char **)':
geotiff.cpp:2732: `PHOTOMETRIC_ICCLAB' undeclared (first use this function)
geotiff.cpp:2732: (Each undeclared identifier is reported only once
geotiff.cpp:2732: for each function it appears in.)
geotiff.cpp: In function `void GTiffTagExtender(TIFF *)':
geotiff.cpp:3609: ANSI C++ forbids declaration `TIFFFieldInfo' with no type
geotiff.cpp:3609: uninitialized const `TIFFFieldInfo'
geotiff.cpp:3609: parse error before `['
geotiff.cpp:3609: warning: unused variable `const int TIFFFieldInfo'
geotiff.cpp: At top level:
geotiff.cpp:3619: `tif' was not declared in this scope
geotiff.cpp:3619: `xtiffFieldInfo' was not declared in this scope
geotiff.cpp:3620: `xtiffFieldInfo' was not declared in this scope
geotiff.cpp:3620: `xtiffFieldInfo' was not declared in this scope
geotiff.cpp:3620: ANSI C++ forbids declaration `TIFFMergeFieldInfo' with no typegeotiff.cpp:3620: initializer list being treated as compound expression
geotiff.cpp:3621: parse error before `}'
make[2]: *** [../o/geotiff.o] Error 1
make[2]: Leaving directory `/home/hoge/rpm/BUILD/gdal-1.2.0/frmts/gtiff'
make[1]: *** [gtiff-install-obj] Error 2
make[1]: Leaving directory `/home/hoge/rpm/BUILD/gdal-1.2.0/frmts'
make: *** [frmts-target] Error 2
Bad exit status from /var/tmp/rpm-tmp.35260 (%build)




More information about the Gdal-dev mailing list