[gdal-dev] Compiling GDAL 1.5.1 for WinCE

marcello ferrero marcello_ferrero at yahoo.com
Mon Mar 31 16:47:47 EDT 2008


Hi,
I have the following unresolved external errors compiling gdal 1.5.1 for WinCE:
 
ogrgeometry.obj : error LNK2019: unresolved external symbol OGR_G_ExportToKML referenced in function "public: virtual char * __cdecl OGRGeometry::exportToKML(void)const "
ogrgeometry.obj : error LNK2019: unresolved external symbol OGR_G_ExportToJson referenced in function "public: virtual char * __cdecl OGRGeometry::exportToJson(void)const "
dbfopen.obj : error LNK2019: unresolved external symbol SASetupDefaultHooks referenced in function DBFOpen
shpopen.obj : error LNK2001: unresolved external symbol SASetupDefaultHooks
shpopen.obj : error LNK2019: unresolved external symbol snprintf referenced in function SHPReadObject
 
 
I solved the problems doing the following:
a) change ogrgeometry.c and comment out the calls to OGR_G_ExportToKML  and OGR_G_ExportToJson
b) "Add Existing" to add shp_vsi.c to the Visual Studio project in org->ogr_frmts->shape. This resolves SASetupDefaultHooks 
c) add  #include "cpl_port.h" to shapelib.h to resolve snprintf
 
I don't know if this is the right approach, but now the library is correctly created
 
Marcello Ferrero


      ____________________________________________________________________________________
OMG, Sweet deal for Yahoo! users/friends:Get A Month of Blockbuster Total Access, No Cost. W00t 
http://tc.deals.yahoo.com/tc/blockbuster/text2.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20080331/a1ebe96f/attachment-0001.html


More information about the gdal-dev mailing list