Linking etc.c.sqlite3 on Win32

Nick Sabalausky SeeWebsiteToContactMe at semitwist.com
Sat May 25 15:17:12 PDT 2013


On Sun, 26 May 2013 00:03:01 +0200
Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:

> On 5/25/13, Nick Sabalausky <SeeWebsiteToContactMe at semitwist.com>
> wrote:
> > Ok, uhhh...How do I do it?
> 
> Never used sqlite, but for implicit linking you need an import library
> which you then just pass to DMD at command-line. Use implib[1],
> probably with the /system switch on the DLL (or on the .def file).
> 
> E.g. one of these probably:
> 
> implib sqlite3_implib.lib sqlite3.def /system
> implib sqlite3_implib.lib sqlite3.dll /system
> 
> And then: $ dmd sqlite3_implib.lib mymain.d
> 
> For explicit linking.. well that's the LoadLibrary/GetProcAddress
> approach, no import library needed there, but more work is needed.
> 
> [1] : http://ftp.digitalmars.com/bup.zip from
> http://www.digitalmars.com/download/freecompiler.html


Ahh thanks. I hadn't been able to find implib before, so that helped
and then this worked:

implib /system sqlite3.lib sqlite3.dll
rdmd [...etc...] sqlite3.lib [...etc...]



More information about the Digitalmars-d-learn mailing list