[Gdal-dev] Compiling error on Redhat 9 from gdal/ogr cvs source
Normand Savard
nsavard at dmsolutions.ca
Fri Jan 16 12:30:21 EST 2004
Frank,
I trying to compile gdal/ogr from source and I got a compilation error.
I checked out the source code from cvs this morning.
My configuration setting is:
./configure --prefix=/opt/mapserver/ --with-ogr
--with-png=/opt/mapserver/ --with-libz=/opt/mapserver/
--with-jpeg=/opt/mapserver/ --with-odbc=/usr/local
I did a "make" and I got the error below.
I checked in the source code and the "VSIStrerror()" is declared in
"cpl_vsi.h" via an "cpl_conv.h" include. The function appears in
"cpl_vsisimple.cpp" file.
The error is:
....
make[2]: Entering directory `/home/src/gdal-cvs/frmts/hfa'
/bin/sh ../../libtool --mode=compile g++ -Wall -O2 -I/opt/mapserver/
-I/opt/mapserv
er//include -I/opt/mapserver/ -I/opt/mapserver//include -I../../port
-I../../gcore-I../../ogr -c -o ../o/hfaband.o hfaband.cpp
g++ -Wall -O2 -I/opt/mapserver/ -I/opt/mapserver//include
-I/opt/mapserver/ -I/opt/m
apserver//include -I../../port -I../../gcore -I../../ogr -c hfaband.cpp
-fPIC -DPIC-o ../o/.libs/hfaband.o
hfaband.cpp: In member function `CPLErr HFABand::GetRasterBlock(int, int,
void*)':
hfaband.cpp:878: `VSIStrerror' undeclared (first use this function)
hfaband.cpp:878: (Each undeclared identifier is reported only once for each
function it appears in.)
make[2]: *** [../o/hfaband.o] Error 1
make[2]: Leaving directory `/home/src/gdal-cvs/frmts/hfa'
make[1]: *** [hfa-install-obj] Error 2
....
Norm
More information about the Gdal-dev
mailing list