SQLite documentation can be found on the home page. There is also a quick start guide .
However, before this information is useful, you need to understand how to use the compiler and linker to create a program that uses external libraries. From the question you ask, some of this is not yet clear, so perhaps the review is in order:
The compiler (which is the MinGW release of GCC from the Dev-Cpp environment distribution kit) converts the source text commonly found in. c and .h files into object files containing machine language with values ββfor some characters left unspecified. The compiler (Gnu ld is used with MinGW) receives object files from the command line, as well as from libraries (usually .a files, where the -lsqlite3 option refers to a library file called libsqlite3.a ) and collects them into a single executable file.
So, to use the SQLite library, you need header files in a place where the compiler can find them to match the #include directive. And you need an appropriate library of objects so that the linker can satisfy all the function references in the SQLite API.
One of the recommended ways to incorporate SQLite into a project is to compile it from a single-file join and link it directly to your program.Thus, you get a library that was compiled with the same compiler as the rest of your application (which reduces the likelihood of subtle run-time problems) and does not require a DLL (or .so) file in your distribution to cause problems for your users.
It is also recommended that you have a copy of sqlite3.exe . This is a useful utility that allows you to check the SQLite database file and make special changes. Just put it somewhere in your PATH so that it can be used from the command line.
If you must use the pre-build DLL, then one of the is available from the SQLite project. It happens to be compiled in a way that is compatible with MinGW. In particular, it uses the same runtime library that MinGW uses. Note that this may not be completely compatible if you used Visual Studio or another compiler for Windows.
source share