Re: [sqlite] pthreadMutex

2009-12-09 Thread Luiz Gustavo P Tonello
Thanks Thomas,

My problem was when I compile the code with gcc

I used like this:
# gcc sqlite3.c code.c -o test -lpthread -ldl

Work fine!

Thanks again.

Gustavo Tonello

On Dec 9, 2009, at 8:52 PM, Thomas Mittelstaedt <tmsta...@t-mittelstaedt.de 
 > wrote:

> Luiz,
>
> You may try to compile with -pthread in the compile flags.
>
> Am Mittwoch, den 09.12.2009, 00:12 -0200 schrieb Luiz Gustavo P  
> Tonello:
>> undefined reference to `pthread_mutexattr_init'
>
> -- 
> thomas
>
>
>
> ___
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] pthreadMutex

2009-12-09 Thread Luiz Gustavo P Tonello


Gustavo Tonello

On Dec 9, 2009, at 8:52 PM, Thomas Mittelstaedt <tmsta...@t-mittelstaedt.de 
 > wrote:

> Luiz,
>
> You may try to compile with -pthread in the compile flags.
>
> Am Mittwoch, den 09.12.2009, 00:12 -0200 schrieb Luiz Gustavo P  
> Tonello:
>> undefined reference to `pthread_mutexattr_init'
>
> -- 
> thomas
>
>
>
> ___
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


[sqlite] pthreadMutex

2009-12-08 Thread Luiz Gustavo P Tonello
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