On 5/25/13, Nick Sabalausky <[email protected]> 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

Reply via email to