[Gdal-dev] Cygwin CVS errors

Daniel Morissette morissette at dmsolutions.ca
Mon Mar 31 17:17:00 EST 2003


I got the same undefined symbol error on Linux earlier today and gave up
thinking that my build environment might have been screwed up.  So it
wasn't just me.. I'll wait for the fix then.  ;-)

Daniel


Norman Vine wrote:
> 
> Hi all,
> 
> Trying to build GDAL CVS today with Cygwin I get the errors below
> 
> On further investigation I find
> 
> from ograssemblepolygon.cpp
> OGRPolygon *OGRBuildPolygonFromEdges( ... )
> 
> and from ogr_api.h:
> OGRGeometryH CPL_DLL OGRBuildPolygonFromEdges( ... )
> 
> Any advice appreciated
> 
> TIA
> 
> Norman
> 
> g++ -shared -o ./cyggdal.1.1.dll \
> -Wl,--out-implib=libgdal.1.1.dll.a \
> -Wl,--export-all-symbols \
>         -Wl,--allow-multiple-definition \
> -Wl,--enable-auto-import \
> -Wl,--whole-archive ./gdal.a ./port/cpl.a \
> -Wl,--no-whole-archive  ./ogr/ogr.a ./ogr/ogrsf_frmts/ogrsf_frmts.a
> ./ogr/ogr.a \
>         -Wl,--no-whole-archive  -L/usr/lib -lpq -lm -lm -L/usr/local/lib -lm
> fhdf  -lhdfeos -ldf
> Creating library file: libgdal.1.1.dll.a
> ./ogr/ogrsf_frmts/ogrsf_frmts.a(ogravcbinlayer.o)(.text+0x849):ogravcbinlaye
> r.cpp: undefined reference to `_OGRBuildPoly
> gonFromEdges'
> ./ogr/ogrsf_frmts/ogrsf_frmts.a(ogrdgnlayer.o)(.text+0x120f):ogrdgnlayer.cpp
> : undefined reference to `_OGRBuildPolygonFr
> omEdges'
> ./ogr/ogrsf_frmts/ogrsf_frmts.a(s57reader.o)(.text+0x2d44):s57reader.cpp:
> undefined reference to `_OGRBuildPolygonFromEd
> ges'
> ./ogr/ogrsf_frmts/ogrsf_frmts.a(ntffilereader.o)(.text+0x3f8a):ntffilereader
> .cpp: undefined reference to `_OGRBuildPolyg
> onFromEdges'
> collect2: ld returned 1 exit status
> make: *** [cyggdal.1.1.dll] Error 1
> 
> _______________________________________________



More information about the Gdal-dev mailing list