Compiling with SQLite

tcak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Nov 18 00:07:16 PST 2014


On Tuesday, 18 November 2014 at 05:06:59 UTC, impatient-dev wrote:
> On Tuesday, 18 November 2014 at 03:41:42 UTC, uri wrote:
>> Are you linking with libsqlite3.a?
>>
>> For example:
>>
>> $ dmd prog.d -L-lsqlite3
>
> That worked, thanks. I didn't know you had to anything special 
> to link with code in the standard library; is there 
> documentation for this somewhere?
>
D doesn't have the whole implementation of SQLite. It is 
implemented as a library, and the sqlite3 module hooks up to 
library's functions. So, you should give your program the library 
ie. implementation of SQLite.


More information about the Digitalmars-d-learn mailing list