Hello guy's!

I'm a newbie in SQLite, and I need to compile an code C with SQlite.
Well,  when I try compile my code, SQLite return this error:

/tmp/ccJJZKFA.o: In function `pthreadMutexAlloc':
sqlite3.c:(.text+0x2f9c): undefined reference to `pthread_mutexattr_init'
sqlite3.c:(.text+0x2faf): undefined reference to `pthread_mutexattr_settype'
sqlite3.c:(.text+0x2fcc): undefined reference to `pthread_mutexattr_destroy'
/tmp/ccJJZKFA.o: In function `pthreadMutexTry':
sqlite3.c:(.text+0x308e): undefined reference to `pthread_mutex_trylock'
/tmp/ccJJZKFA.o: In function `testThreadLockingBehavior':
sqlite3.c:(.text+0x85ef): undefined reference to `pthread_create'
sqlite3.c:(.text+0x8606): undefined reference to `pthread_join'
/tmp/ccJJZKFA.o: In function `unixDlOpen':
sqlite3.c:(.text+0xa6ac): undefined reference to `dlopen'
/tmp/ccJJZKFA.o: In function `unixDlError':
sqlite3.c:(.text+0xa6be): undefined reference to `dlerror'
/tmp/ccJJZKFA.o: In function `unixDlSym':
sqlite3.c:(.text+0xa6fc): undefined reference to `dlsym'
/tmp/ccJJZKFA.o: In function `unixDlClose':
sqlite3.c:(.text+0xa721): undefined reference to `dlclose'
collect2: ld returned 1 exit status

I search at Google and olders topics of this list, but I don't found a solution.
I've tried define sqlite3_config with singlethread, or multithread. I haven't 
had success.
Run: SQLite 3.6.21 and Debian Lenny

Can I help me?
--
Luiz Gustavo P Tonello.




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

Reply via email to