[Gdal-dev] Minor compilation error
Paul Kelly
paul-grass at stjohnspoint.co.uk
Mon Dec 15 06:59:54 EST 2003
Hello
Here is an interesting problem (see below) I encountered when compiling
the latest GDAL source (on an IRIX 6.2 system). The function prototype for
CPLScanDouble() had recently been changed to take an extra argument. But
when compiling I got an error because #include <cpl_string.h> was picking
up the old version of the cpl_*.h files installed in /usr/local/include
instead of the up-to-date and consistent versions in ../../port
If -I/usr/local/include was included last after the include directories
within the GDAL source tree, I think things would work properly. As it is,
I deleted my GDAL-related header files in /usr/local/include to allow the
compilation to proceed.
I'm not sure if this is a valid complaint or something worth fixing so am
posting it here just in case.
Paul
(directory frmts/raw)
/bin/sh ../../libtool --mode=compile CC -O3 -I/usr/local/include -I../../port -I../../port -I../../gcore -I../../ogr -c -o fastdataset.o fastdataset.cpp
CC -O3 -I/usr/local/include -I../../port -I../../port -I../../gcore -I../../ogr -c fastdataset.cpp -DPIC
CC: Warning: -c should not be used with ucode -O3 -o32 on a single file; use -j instead to get inter-module optimization.
"fastdataset.cpp", line 541: error(3229): too many arguments in function call
dfULX = CPLScanDouble( szHeader + 3664, 13, "C" );
^
"fastdataset.cpp", line 542: error(3229): too many arguments in function call
dfULY = CPLScanDouble( szHeader + 3678, 13, "C" );
^
"fastdataset.cpp", line 543: error(3229): too many arguments in function call
dfURX = CPLScanDouble( szHeader + 3744, 13, "C" );
^
"fastdataset.cpp", line 544: error(3229): too many arguments in function call
dfURY = CPLScanDouble( szHeader + 3758, 13, "C" );
^
"fastdataset.cpp", line 545: error(3229): too many arguments in function call
dfLRX = CPLScanDouble( szHeader + 3824, 13, "C" );
^
"fastdataset.cpp", line 546: error(3229): too many arguments in function call
dfLRY = CPLScanDouble( szHeader + 3838, 13, "C" );
^
"fastdataset.cpp", line 547: error(3229): too many arguments in function call
dfLLX = CPLScanDouble( szHeader + 3904, 13, "C" );
^
"fastdataset.cpp", line 548: error(3229): too many arguments in function call
dfLLY = CPLScanDouble( szHeader + 3918, 13, "C" );
^
"fastdataset.cpp", line 556: error(3229): too many arguments in function call
PackedDMSToDec( CPLScanDouble(szHeader + 3312, 24, "C") ),
^
"fastdataset.cpp", line 558: error(3229): too many arguments in function call
PackedDMSToDec( CPLScanDouble(szHeader + 3282, 24, "C") ),
^
"fastdataset.cpp", line 559: error(3229): too many arguments in function call
CPLScanDouble(szHeader + 3232, 24, "C"), // Scale factor
^
"fastdataset.cpp", line 560: error(3229): too many arguments in function call
CPLScanDouble(szHeader + 3337, 24, "C"), // False easting
^
"fastdataset.cpp", line 561: error(3229): too many arguments in function call
CPLScanDouble(szHeader + 3362, 24, "C") ); // False northing
^
"fastdataset.cpp", line 565: error(3229): too many arguments in function call
dfULX = CPLScanDouble( szHeader + 3664, 13, "C" ) - dfZone;
^
"fastdataset.cpp", line 566: error(3229): too many arguments in function call
dfULY = CPLScanDouble( szHeader + 3678, 13, "C" );
^
"fastdataset.cpp", line 567: error(3229): too many arguments in function call
dfURX = CPLScanDouble( szHeader + 3744, 13, "C" ) - dfZone;
^
"fastdataset.cpp", line 568: error(3229): too many arguments in function call
dfURY = CPLScanDouble( szHeader + 3758, 13, "C" );
^
"fastdataset.cpp", line 569: error(3229): too many arguments in function call
dfLRX = CPLScanDouble( szHeader + 3824, 13, "C" ) - dfZone;
^
"fastdataset.cpp", line 570: error(3229): too many arguments in function call
dfLRY = CPLScanDouble( szHeader + 3838, 13, "C" );
^
"fastdataset.cpp", line 571: error(3229): too many arguments in function call
dfLLX = CPLScanDouble( szHeader + 3904, 13, "C" ) - dfZone;
^
"fastdataset.cpp", line 572: error(3229): too many arguments in function call
dfLLY = CPLScanDouble( szHeader + 3918, 13, "C" );
^
"fastdataset.cpp", line 521: warning(3666): variable "dfLRX" was set but never
used
double dfLRX = poDS->nRasterXSize - 0.5, dfLRY = poDS->nRasterYSize - 0.5;
^
"fastdataset.cpp", line 521: warning(3666): variable "dfLRY" was set but never
used
double dfLRX = poDS->nRasterXSize - 0.5, dfLRY = poDS->nRasterYSize - 0.5;
^
21 errors detected in the compilation of "fastdataset.cpp".
make: *** [fastdataset.o] Error 1
More information about the Gdal-dev
mailing list