[gdal-dev] Development and Compilation of a custom
SQLite/Spatialite Driver
Sharad Singh
singh.sharad113 at yahoo.in
Wed Jun 30 16:29:52 EDT 2010
Hi List,
I am developing a custom SQLite/Spatialite driver for a GIS application. Now
when I am compiling my source code I am getting a some linking errors.
The source code has the following files as its header files
sqlite3.h
geos_c.h
gaiageo.h
spatialite.c
wx/string.h
iconv.h
proj_api.h
In terms of compiling it is almost the same as building <spatialite.c>. But once
I compile it on VS2008 on Windows Vista 32-bit processor, I am getting errors
as:
1. error LNK2019: unresolved external symbol _locale_charset referenced in
function _gaiaGetLocaleCharsetspatialite.objcompile
2. error LNK2019: unresolved external symbol _libiconv_close referenced in
function _gaiaConvertCharsetspatialite.objcompile
3. error LNK2019: unresolved external symbol _GEOSGeom_destroy referenced in
function _gaiaGeomCollEqualsspatialite.objcompile
4. error LNK2019: unresolved external symbol _GEOSversion referenced in function
_spatialite_initspatialite.objcompile
5. error LNK2019: unresolved external symbol _WinMain at 16 referenced in function
___tmainCRTStartupMSVCRTD.libcompile
I am getting almost the similar erros when I try to compile <spatialite.c>
Am I missing some possible step while compiling the source code? Have I
overlooked some of the dependencies?
Should I keep <iconv.h> file in my project or a dependency for libicon?.
Also, should I keep the file <proj_api.h> in my project or a dependency on
libproj?
I would be very grateful if you can help me with the above problem.
Thanks,
--
Sharad Singh
India
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100701/4f4b02a6/attachment.html
More information about the gdal-dev
mailing list