Michael Alperovitch wrote:
Hi,
I am new SQLite user.
How I can link the simple C Program with Sqlite static or shared
library.
I tried to link to libsqlite3.a and it cannot find sqlite3_open(),
sqllite3_close(), sqllite3_exec() functions.
I got the same result linking with libsqlite3.so shared library.
Locate your sqlite library path. To the compiler command line for the
link phase add the following:
-L/path/to/lib -lsqlite3
That should do it just fine. If it doesn't, it's possible that you have
stored the library outside of your system's known library folders. If
they are in the library folders, try rerunning ldconfig, which should
then make them visible when running the program.
Clay Dowling
--
http://www.lazarusid.com/notes/
Lazarus Notes
Articles and Commentary on Web Development
-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------