<div dir="ltr"><div>I was looking at the <a href="http://makefile.vc">makefile.vc</a> and docs and visual studio reference I was not able to create sqlite3_i.lib do I miss something apart from linker optimization flags <br><br>cl /c sqlite3.c<br>link /nologo /dll sqlite3.obj /out:sqlite3.dll /implib:sqlite3_i.lib <br><br></div>My goal is make gdal access geopackage so I want to use this sqlite3 in nmake.opt, correct me If I am wrong.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 20, 2016 at 2:48 PM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">Le mercredi 20 janvier 2016 09:56:20, Gane R a écrit :<br>
> Where do I get the sqlite3 with include header files, stub library<br>
> sqlite3_i.lib and dll.<br>
><br>
> Do I have to build it, If so I tried the following<br>
><br>
> I have a sql-amalgation version.<br>
> I tried to look the documentation on sqlite website for creating a<br>
> sqlite3.dll<br>
><br>
> using the following command<br>
> cl sqlite3.c -link -dll -out:sqlite3.dll<br>
><br>
> I got that, but sqlite3_i.lib was not there.<br>
<br>
<br>
</div></div>You may need to use the link program itself with /implib<br>
<br>
Taken from GDAL's <a href="http://makefile.vc" rel="noreferrer" target="_blank">makefile.vc</a> :<br>
<br>
$(GDAL_DLL): staticlib<br>
link /nologo /dll $(OGR_INCLUDE) $(BASE_INCLUDE) $(LIBOBJ) \<br>
$(EXTERNAL_LIBS) gcore\Version.res \<br>
/out:$(GDAL_DLL) /implib:gdal_i.lib $(LINKER_FLAGS)<br>
<br>
<br>
So likely in 2 steps :<br>
cl /c sqlite3.c (you should probably add optimization options too)<br>
link /dll sqlite3.obj /out:sqlite3.dll /implib:sqlite3_i.lib<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
</font></span></blockquote></div><br></div>