I want to use sqlite for learning purposes. I downloaded the sqlite-amalgamation from sqlite.org, and made a static library from a dll file and a dev file, but I keep havaing problems with linking before I can actually code..
I am using codeblocks IDE, and using GNU GCC Compiler. I copied the sqlite3.h to the folder with all the header files, and the static library to the folder with all static librarys. I linked the library trough build options as well.
There error I am getting when I am building.
I can post my code but actually I doubt its usefull..Quote:
-------------- Build: Debug in test03 ---------------
Linking console executable: bin\Debug\test03.exe
C:\Program Files (x86)\CodeBlocks\MinGW\lib\libsqlite3.a: file not recognized: File truncated
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
PHP Code:
#include <iostream>
#include <sqlite3.h>
using namespace std;
int main()
{
const char * DBfile = "my.db";
sqlite3 *database;
sqlite3_open(DBfile, &database);
return 0;
}
Anyone got an idea? Help is being appreciated!






