Re: [sqlite] linking C program
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] -
Re: [sqlite] linking C program
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. Thanks for any help. Michael Alperovitch Tricipher Inc. What is your link command? - To unsubscribe, send email to [EMAIL PROTECTED] -
Re: [sqlite] linking C program
I always include the source into my C program (with KDevelop for linux or DEV-CPP for windows). And if you do that you could config better. On 8/14/06, Michael Alperovitch <[EMAIL PROTECTED]> 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. Thanks for any help. Michael Alperovitch Tricipher Inc.
[sqlite] linking C program
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. Thanks for any help. Michael Alperovitch Tricipher Inc.