sqlite-3.5.1.so related question
I have the above mentioned so and I don't know how to link with it.Does anyone know how to link in linux?The sqlite..so may be found on the download page
when linking "-l" is used for linking libs. (-l works only on files which begin with "lib" I believe)
e.g.:
-lsqlite-3.5.1
"-L" adds library paths.
e.g. -L/usr/local/lib
Btw it !should! be named "libsqlite-3.5.1.so"?!
Your command might look like $ g++ -o test test.c -lsqlite-3.5.1
hope that helps
e.g.:
-lsqlite-3.5.1
"-L" adds library paths.
e.g. -L/usr/local/lib
Btw it !should! be named "libsqlite-3.5.1.so"?!
Your command might look like $ g++ -o test test.c -lsqlite-3.5.1
hope that helps
I missed a header file.?Nevertheless where should I put the so so that the system should see it at link time and runtime
...and the header file in /usr/local/include
<hr />
Sander Marechal<small>[Lone Wolves][Hearts for GNOME][E-mail][Forum FAQ]</small>
So,I have now a
libsqlite-3.5.2.so in /usr/local/lib
and a
sqlite3.h in my local directory
how do I link?
It keeps saying : /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/local/lib/libsqlite-3.5.2.so when searching for -lsqlite-3.5.2
And my command was:
gcc -lsqlite-3.5.2 -o study study.c
libsqlite-3.5.2.so in /usr/local/lib
and a
sqlite3.h in my local directory
how do I link?
It keeps saying : /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/local/lib/libsqlite-3.5.2.so when searching for -lsqlite-3.5.2
And my command was:
gcc -lsqlite-3.5.2 -o study study.c
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement