<div dir="ltr">Thanks, adding a space and a path to the sqlite_i.lib did the trick</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Dec 10, 2015 at 11:14 AM Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le jeudi 10 décembre 2015 17:00:12, kelly elton a écrit :<br>
> So I'm building on windows<br>
><br>
> I downloaded the osgeo4w installer and installed the spatialite + sqlite<br>
> libraries.<br>
><br>
> I uncommitted these two lines<br>
><br>
> SQLITE_INC=-IC:\OSGeo4W\include -DHAVE_SPATIALITE -DSPATIALITE_AMALGAMATION<br>
> SQLITE_LIB=C:\OSGeo4W\lib\spatialite_i.lib<br>
<br>
Latest Spatialite versions are no longer in "amalgmation" mode so you also<br>
likely need to explictly link against sqlite3 itself.<br>
So add to the SQLITE_LIB line sqlite.lib or sqlite_i.lib whatever it is<br>
called.<br>
<br>
><br>
> So when compiling now(which was working before this) I get tons of<br>
> unresolved external symbol errors. I also tried downloading and pointing to<br>
> the GISInternals sdk but that created the same errors. I must be missing<br>
> something fundamental here, any help would be much appreciated.<br>
><br>
> ogrsf_frmts.lib(ogrsqlitetablelayer.obj) : error LNK2001: unresolved<br>
> external symbol _sqlite3_exec<br>
> ogrsf_frmts.lib(hugefileresolver.obj) : error LNK2001: unresolved external<br>
> symbol _sqlite3_exec<br>
> ogrsf_frmts.lib(vfkreadersqlite.obj) : error LNK2001: unresolved external<br>
> symbol _sqlite3_exec<br>
> ogrsf_frmts.lib(ogrgeopackageutility.obj) : error LNK2001: unresolved<br>
> external symbol _sqlite3_exec<br>
> ogrsf_frmts.lib(ogrsqliteexecutesql.obj) : error LNK2001: unresolved<br>
> external symbol _sqlite3_exec<br>
> ogrsf_frmts.lib(ogrsqlitedatasource.obj) : error LNK2001: unresolved<br>
> external symbol _sqlite3_exec<br>
> ogrsf_frmts.lib(ogrosmdatasource.obj) : error LNK2001: unresolved external<br>
> symbol _sqlite3_exec<br>
> ogrsf_frmts.lib(ogrgeopackagedatasource.obj) : error LNK2001: unresolved<br>
> external symbol _sqlite3_exec<br>
> ogrsf_frmts.lib(vfkreadersqlite.obj) : error LNK2019: unresolved external<br>
> symbol _sqlite3_free referenced in function "public: virtual void *<br>
> __thiscall GDALDriver::`vector deleting destructor'(unsigned int)"<br>
> (??_EGDALDriver@@UAEPAXI@Z)<br>
<br>
--<br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
</blockquote></div>