Dear friends,
I was sucessfuly able to cross compile the source
sqlite-amalgamation-3.6.23.1 and it's working in the target.
The problem happens when I try to compile my program using the
sqlite3 libraries. I get the following error messages:
balanca_simula_peso_io_paralela.c:632: warning: 'mseg1' may be
used uninitialized in this function
/home/generic/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/lib/libsqlite3.a(sqlite3.o):
In function `unixDlSym':
/home/generic/OpenController/garten/teste/sqlite3.c:26442: undefined
reference to `dlsym'
/home/generic/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/lib/libsqlite3.a(sqlite3.o):
In function `unixDlClose':
/home/generic/OpenController/garten/teste/sqlite3.c:26446: undefined
reference to `dlclose'
/home/generic/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/lib/libsqlite3.a(sqlite3.o):
In function `unixDlError':
/home/generic/OpenController/garten/teste/sqlite3.c:26415: undefined
reference to `dlerror'
/home/generic/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/lib/libsqlite3.a(sqlite3.o):
In function `unixDlOpen':
/home/generic/OpenController/garten/teste/sqlite3.c:26401: undefined
reference to `dlopen'
collect2: ld returned 1 exit status
the command line to compile is the following:
"arm-none-linux-gnueabi-gcc -o balanca
balanca_simula_peso_io_paralela.c -Wall -W -O2
-Wl,-R/home/generic/CodeSourcery/Sourcery_G++_Lite/lib -lsqlite3
-lpthread -static"
Any help for that? There is any information that I can provide
to be more clear about the problem we're facing here?
Regards,
Matheus Ledesma
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users