I get an ARM based embedded system (AT91SAM9260 - ATMEL), linux based,
with uclibc library and my code, developed in C with the sqlite3
library, runs fine only in my host linux (Fedora).

Firstly, I compiled the code on Makefile project (the main line is...
arm-linux-gcc -o $(PROJECT) $(PROJECT).c -L/usr/local/lib -lsqlite3)
And get the error...
/opt/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/../../../../arm-linux/bin/ld:
skipping incompatible /usr/local/lib/libsqlite3.so when searching for
-lsqlite3
/opt/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/../../../../arm-linux/bin/ld:
skipping incompatible /usr/local/lib/libsqlite3.a when searching for
-lsqlite3
/opt/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/../../../../arm-linux/bin/ld:
cannot find -lsqlite3
collect2: ld returned 1 exit status
make: ** [test_arm] Erro 1

My second attempt was to run the arm-linux-gcc without makefiles...

[test_arm]# arm-linux-gcc test_arm.c -o test_arm

/tmp/ccK8a2yE.o: In function `select_stmt':
test_arm.c:(.text+0x1b8): undefined reference to `sqlite3_exec'
/tmp/ccK8a2yE.o: In function `sql_stmt':
test_arm.c:(.text+0x248): undefined reference to `sqlite3_exec'
/tmp/ccK8a2yE.o: In function `main':
test_arm.c:(.text+0x4a0): undefined reference to `sqlite3_open'
test_arm.c:(.text+0x548): undefined reference to `sqlite3_close'
collect2: ld returned 1 exit status

What can I do to run this code on ARM?
Any help or suggestion will be welcome!

Best Regards,
Igor Guzzo
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to