Clay Dowling <[EMAIL PROTECTED]> wrote:
> Severin Müller wrote:
> > I tried to include sqlite3 in my current C Project. =
> 
> > =
> 
> > I downloaded the precompiled library sqlite-3.5.6.so and put it in my pro=
> ject.
> > Then, i downloaded the sqlite source and added sqlite3.h to my project. =
> 
> > =
> 
> > Now, when i try to compiler, i get the following error message:
> > =
> 
> > /home/fish-guts/workspace/Debug/lib/sqlite-3.5.6.so: undefined reference =
> to `dlsym'
> > /home/fish-guts/workspace/Debug/lib/sqlite-3.5.6.so: undefined reference =
> to `dlerror'
> > /home/fish-guts/workspace/Debug/lib/sqlite-3.5.6.so: undefined reference =
> to `dlopen'
> > /home/fish-guts/workspace/Debug/lib/sqlite-3.5.6.so: undefined reference =
> to `dlclose'
> 
> Rather than use the precompiled library, I recommend one of two options:
> 
> 1. Download the latest version that is in your package manager and use
>    that, if it is sufficiently recent.
> 
> 2. Download the source and build it.  It is a very easy to build
>    package, and you would then have the option to build a static version if
>    you wanted (the .a library)
> 

I agree with Clay.  Get a copy of the amalagamation.  It is a single
file of C code named sqlite3.c.  Compile it and statically link it 
with your application.

But even then, you're going to get the same linker errors because you
have omitted the "-ldl" option when you link.

--
D. Richard Hipp <[EMAIL PROTECTED]>

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to