#How do you include a C library in a Zig project?

1 messages · Page 1 of 1 (latest)

opaque scroll
#

I want to include SQLite in my project, so I installed the source into lib/sqlite and added this to my build.zig:

    // Add sqlite.c to zeta's lib sources.
    lib.addCSourceFile("lib/sqlite/sqlite3.c");

but do I need to add the header file in this manner as well? Or can I directly cInclude the header?

deft depot
#

fwiw im pretty sure sql has more than one source file
Its a pretty very project isnt it
If it works thats cool but that just doesnt sound right to me

opaque scroll