You don't show how you're compiling...but this is what you need to do.
gcc -o myprog myprog.c sqlite3.c -lthread -ldl Your undefined reference are to the two libraries you need to link in to resolve them. Michael D. Black Senior Scientist Advanced Analytics Directorate Advanced GEOINT Solutions Operating Unit Northrop Grumman Information Systems ________________________________ From: [email protected] [[email protected]] on behalf of Sako Youssouf [[email protected]] Sent: Wednesday, April 11, 2012 6:20 AM To: [email protected] Subject: EXT :[sqlite] error compilation with sqlite amalgamation Hi, I want to use sqlite with an arm processor, and when I compiled the source files from the amalgamation, I got these errors: sqlite3.o: In function `pthreadMutexAlloc': sqlite3.c:(.text+0x3a93): undefined reference to `pthread_mutexattr_init' sqlite3.c:(.text+0x3aa6): undefined reference to `pthread_mutexattr_settype' sqlite3.c:(.text+0x3ac3): undefined reference to `pthread_mutexattr_destroy' sqlite3.o: In function `pthreadMutexTry': sqlite3.c:(.text+0x3b64): undefined reference to `pthread_mutex_trylock' sqlite3.o: In function `unixDlOpen': sqlite3.c:(.text+0xccf6): undefined reference to `dlopen' sqlite3.o: In function `unixDlError': sqlite3.c:(.text+0xcd08): undefined reference to `dlerror' sqlite3.o: In function `unixDlSym': sqlite3.c:(.text+0xcd46): undefined reference to `dlsym' sqlite3.o: In function `unixDlClose': sqlite3.c:(.text+0xcd6b): undefined reference to `dlclose' collect2: ld a retourné 1 code d'état d'exécution can someone explain me what can be the problem ? thank you! Youssouf _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

