On Thu, Oct 7, 2010 at 5:47 PM, Dan Sabin <[email protected]> wrote:

> Hi,
>
> I'm trying to embed SQLite into a Linux application. It's written in C++
> and I'm having trouble getting the code to compile with the SQLite .c and .h
> files included. I get some of the following errors:
>
> ...../MyProject/Debug/../src/sqlite3.c:16556: undefined reference to
> `pthread_mutexattr_init'
> ...../MyProjec/Debug/../src/sqlite3.c:16557: undefined reference to
> `pthread_mutexattr_settype'
> ...../MyProjec/Debug/../src/sqlite3.c:16559: undefined reference to
> `pthread_mutexattr_destroy'
>

Please add  -lpthread to the end of the gcc command-line.


>
> I looked and the <pthread.h> file is being included. I just don't know how
> sqlite.c can't find the functions. If you have any knowledge of where i can
> find out how to solve my problem it'd be appreciated. I've searched
> everywhere and i can't find any answers.
>
> Thank You,
> Dan
>



-- 
D. Richard Hipp
[email protected]
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to