[gdal-dev] spatialite linking issues

kelly elton its.the.doc at gmail.com
Thu Dec 10 08:22:21 PST 2015


Thanks, adding a space and a path to the sqlite_i.lib did the trick

On Thu, Dec 10, 2015 at 11:14 AM Even Rouault <even.rouault at spatialys.com>
wrote:

> Le jeudi 10 décembre 2015 17:00:12, kelly elton a écrit :
> > So I'm building on windows
> >
> > I downloaded the osgeo4w installer and installed the spatialite  + sqlite
> > libraries.
> >
> > I uncommitted these two lines
> >
> > SQLITE_INC=-IC:\OSGeo4W\include -DHAVE_SPATIALITE
> -DSPATIALITE_AMALGAMATION
> > SQLITE_LIB=C:\OSGeo4W\lib\spatialite_i.lib
>
> Latest Spatialite versions are no longer in "amalgmation" mode so you also
> likely need to explictly link against sqlite3 itself.
> So add to the SQLITE_LIB line sqlite.lib or sqlite_i.lib whatever it is
> called.
>
> >
> > So when compiling now(which was working before this) I get tons of
> > unresolved external symbol errors. I also tried downloading and pointing
> to
> > the GISInternals sdk but that created the same errors. I must be missing
> > something fundamental here, any help would be much appreciated.
> >
> > ogrsf_frmts.lib(ogrsqlitetablelayer.obj) : error LNK2001: unresolved
> > external symbol _sqlite3_exec
> > ogrsf_frmts.lib(hugefileresolver.obj) : error LNK2001: unresolved
> external
> > symbol _sqlite3_exec
> > ogrsf_frmts.lib(vfkreadersqlite.obj) : error LNK2001: unresolved external
> > symbol _sqlite3_exec
> > ogrsf_frmts.lib(ogrgeopackageutility.obj) : error LNK2001: unresolved
> > external symbol _sqlite3_exec
> > ogrsf_frmts.lib(ogrsqliteexecutesql.obj) : error LNK2001: unresolved
> > external symbol _sqlite3_exec
> > ogrsf_frmts.lib(ogrsqlitedatasource.obj) : error LNK2001: unresolved
> > external symbol _sqlite3_exec
> > ogrsf_frmts.lib(ogrosmdatasource.obj) : error LNK2001: unresolved
> external
> > symbol _sqlite3_exec
> > ogrsf_frmts.lib(ogrgeopackagedatasource.obj) : error LNK2001: unresolved
> > external symbol _sqlite3_exec
> > ogrsf_frmts.lib(vfkreadersqlite.obj) : error LNK2019: unresolved external
> > symbol _sqlite3_free referenced in function "public: virtual void *
> > __thiscall GDALDriver::`vector deleting destructor'(unsigned int)"
> > (??_EGDALDriver@@UAEPAXI at Z)
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20151210/6057cd51/attachment.html>


More information about the gdal-dev mailing list