Linking etc.c.sqlite3 on Win32
Andrej Mitrovic
andrej.mitrovich at gmail.com
Sat May 25 15:03:01 PDT 2013
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
More information about the Digitalmars-d-learn
mailing list