User forums > Help

Setting up SQLite

(1/2) > >>

bugmenot:
Hi, i have some questions about setting up sqlite.


* I've downloaded sqlite-amalgamation-3_6_10.zip and tried to compile a static library with it. So i started a new Project ("Static Library") and added all the files included in the zip-file (sqlite3.c,  sqlite3.h, sqlite3ext.h). But all i got was sqlite3.o
* I can't add a .o-file to the linker settings
* How can i get it work?
* Does it works with the .dll? How can i use it?
please help

thanks

Jenna:
I just downloaded the sources, put them into the wizard-created project, and get a "*.a" file in the projects root-dir.

If you don't have it, your toolchain might be broken (missing ar.exe).

bugmenot:
oh sry... yes there is also a ".a"  :oops:

Now i get on "Settings -> Compiler and Debugger... -> Linker settings" and "Project -> Build options... -> Linker settings" and add this file there right? Cause this doesn't work yet.

Jenna:

--- Quote from: bugmenot on February 16, 2009, 06:52:32 pm ---oh sry... yes there is also a ".a"  :oops:

Now i get on "Settings -> Compiler and Debugger... -> Linker settings" and "Project -> Build options... -> Linker settings" and add this file there right? Cause this doesn't work yet.


--- End quote ---

Normally you should not touch "Settings -> Compiler and Debugger... -> Linker settings", because the settings you make there are global to all projects, build with the compiler you have chosen.

The second is correct and should work. You can either use the absolute path here, or make sure the linker searchpath is set correctly. You can also youse the shortname of the lib (if serachpath is okay): if the library is called libsqlite.a it should be enough to use sqlite here.

You will of course need to include the header-files, to make the functions known to your sources.

Alfykun:
I too am having the same issue,

I got the sqlite amalgamation zip and i tried to compile it to get the libsqlite3.a file but its just not happening..

can you please give me all the steps .. [complete noob]

I created a new project added the .c &.h files and tried to compile and it gives me this error

"undefined reference to 'Win Main@16'"


please help.

Navigation

[0] Message Index

[#] Next page

Go to full version