[Gdal-dev] Multiple definition of symbol error
R. Piepul
rob at dataflowdesign.com
Thu Jun 19 23:01:07 EDT 2003
While attempting to build gdal, I get a multiply defined reference
for cpl_csv.o. Please advise me on handling this problem.
I'm using libgeotiff-1.2.0 and cvs snapshot for gdal-cvs-030619
Thank you,
Rob
. . . [snipped] . . .
gmake[1]: Leaving directory `/home/rob/installs/gdal-cvs-030619'
gmake ./libgdal.1.1.so
gmake[1]: Entering directory `/home/rob/installs/gdal-cvs-030619'
c++ -shared ./frmts/o/*.o ./core/*.o ./port/*.o ./alg/*.o ./ogr/ogrct.o ./ogr/ogr_opt.o ./ogr/ogr_fromepsg.o ./ogr/ogr_srs_validate.o ./ogr/ogrutils.o ./ogr/ogr_srs_proj4.o ./ogr/ograssemblepolygon.o ./ogr/ogr_api.o ./ogr/ogrsf_frmts/generic/ogrregisterall.o ./ogr/ogrfeaturestyle.o ./ogr/ogrsf_frmts/ogrsf_frmts.a -L -lpq ./gdal.a ./ogr/ogr.a ./gdal.a ./port/cpl.a -lmfhdf -ldf -L/usr/local -L/usr/local/lib -ljpeg -L/home/rob/local/lib -lgeotiff -L/home/rob/local/lib -ltiff -L/usr/local -L/usr/local/lib -lpng -L/usr/local -L/usr/local/lib -lgrass5 -lz -lm -lm \
-o ./libgdal.1.1.so
/home/rob/local/lib/libgeotiff.a(cpl_csv.o): In function `CSVGetFileFieldId':
cpl_csv.o(.text+0x974): multiple definition of `CSVGetFileFieldId'
./port/cpl_csv.o(.text+0xa64): first defined here
/usr/libexec/elf/ld: Warning: size of symbol `CSVGetFileFieldId' changed from 115 to 104 in cpl_csv.o
gmake[1]: *** [libgdal.1.1.so] Error 1
gmake[1]: Leaving directory `/home/rob/installs/gdal-cvs-030619'
gmake: *** [check-lib] Error 2
$
More information about the Gdal-dev
mailing list