Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using SQLite with C on Windows

Tags:

c

sqlite

I am trying to develop a project in C (on Dev-Cpp IDE) using SQLite for data storage, on Windows Vista. I am trying to run this code : Sqlite with C

I moved sqlite3.h in the /lib path. But when I am trying to run the program, I get lots of linker errors, saying "undefined reference to sqlite3_open" ,etc.

Google gives me Linux commands, which cant be used here :( Can somone please guide me through the whole process of using sqlite with C , I am very new to such things. Where do I put the sqlite3.exe ??

Thanks a lot !!

like image 942
dev Avatar asked Aug 22 '10 05:08

dev


1 Answers

I finally figured out my answer through : http://source.online.free.fr/Windows_HowToCompileSQLite

The above link creates a .dll which has to be put in the /bin, and one .a file which has to be passed as an option to the linker !

Thanks David !!

like image 56
dev Avatar answered Nov 14 '22 22:11

dev