embedding a library in Windows
    kinke via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Mon Jan 30 08:39:02 PST 2017
    
    
  
You'll probably be more successful with a static .lib library 
generated with the MS compiler (Visual Studio). I'd suggest 
compiling sqlite yourself and then using DMD with the 
`-m32mscoff` switch (32-bit) or `-m64` for 64-bit. Google is your 
friend in case you don't know how to build a static C library.
Oh apparently sqlite is a single C module, in that case it's even 
easier. Just compile the .c file with the MS compiler (cl.exe 
sqlite3.c) and specify the resulting sqlite3.obj file on the DMD 
command line (with `-m32mscoff` or `-m64`), so that it's linked 
in.
    
    
More information about the Digitalmars-d-learn
mailing list