Ticket #2306 (new defect)

Opened 4 months ago

Errors compiling gdal 1.5.1 on WinCE

Reported by: mferrero Assigned to: mloskot
Priority: normal Milestone:
Component: WinCE Port Version: 1.5.0
Severity: normal Keywords:
Cc:

Description

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