On Sun, Jul 22, 2012 at 6:26 PM, Kf Lee <kflee2...@gmail.com> wrote:

> I copy the "sqlite with c in 5 minutes" example from official site and link
> with -pthread -ldl option.  The error persists.  All web search seem to
> suggest using  -ldl would solve the problem but it did'nt.   Therefore I
> start to think maybe the os missed something .  Do I need to install
> something ?
>

Depending on the version of gcc you are using, you might have to move the
-ldl to the END of the linker line. Some recent gcc release broke a lot of
my makefiles where i had not taken good care of the order of the -lxxx
flags relative to my own .o/.a files which use symbols from the -lxxx
libraries.

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to