Hello everyone,
This is my first post. I am trying to manually compile SQLite 3.6.23 with Dev-C++ as a static library (I can always just download de DevPac, which comes precompiled, but I want to learn to do this by myself). I'm not sure which source code files I need to add to my project in order to compile it.
The amalgamation package includes:
sqlite3.def
sqlite3.h
sqlite3.c
sqlite3ext.h
shell.c
I read somewhere, that shell.c is not required. When I add the other files to my project, I get the following errors:
1 2
|
C:\Dev-Cpp\Projects\libsqlite3\sqlite3.c In function `void strftimeFunc (sqlite3_context*, int, sqlite3_value**)':
12281 C:\Dev-Cpp\Projects\libsqlite3\sqlite3.c invalid conversion from `void*' to `char*'
|
and many other similar errors. When I remove this file, sqlite3.c it seems to compile, as all I get is a message "creating libsqlite3.a".
My questions:
1. Can I use the libsqlite3.a I generated without the sqlite3.c file? Is it complete?
2. How do I add it to my programs?
3. Can I use the available precompiled dll (available from sqlite.org) instead? How would I do this?
Any info will be greatly appreciated.