SQLite Forum

Enabling JSON1 extension in the sqlite3.c amalgamation at compile time
Login
I'm sure this is a very basic/stupid question but I'm having trouble getting the JSON1 extension to work in the `sqlite3.c` amalgamation file.

I'm using minGW-W64 and tried gcc `-DSQLITE_ENABLE_JSON1 -c sqlite3.c` and generated the `sqlite3.o` file without error but when compile that with my code using `gcc sqlite3.o myfile.c -o myfile.exe`, the JSON1 functions are still not recognized.

Where the compiling instructions read that the extension is included in the amalgamation file but disabled by default, is there more to enabling it than this?

I'm just experimenting at the moment and expect that I will need to use more compile options for the final files, but I can't even get this simple thing to work for I don't know enough about compiling.

Thank you.