Hello! I really need your help here. I am using linux openSUSE and i didn't have to download the sqlite since linux already has it. I found these files in the directory usr/lib: file:///usr/lib/libsqlite3.a file:///usr/lib/libsqlite3.la file:///usr/lib/libsqlite3.so file:///usr/lib/libsqlite3.so.0 file:///usr/lib/libsqlite3.so.0.8.6 file:///usr/lib/libsqlite.so.0 file:///usr/lib/libsqlite.so.0.8.6
and in the directory usr/include this file: sqlite3.h (version 3.3.8). My problem is that when i simply make a c++ program in the Desktop and use sqlite all works fine. But when i want to use sqlite3 through network simulator c++ API things go wrong...:(. I try to work with a db through a wrapper-CppSQLite (which wraps basic function of sqlite3) but i keep having wrong messages like: tools/CppSQLite3.o: In function `CppSQLite3DB::lastRowId()': /home/kwnsta/ns-allinone-2.30/ns-2.30/tools/CppSQLite3.cc:1250: undefined reference to `sqlite3_last_insert_rowid' tools/CppSQLite3.o: In function `CppSQLite3DB::close()': /home/kwnsta/ns-allinone-2.30/ns-2.30/tools/CppSQLite3.cc:1138: undefined reference to `sqlite3_close' I checked that LD_LIBRARY_PATH includes the path of libsqlite3.a........... What shall i do? I am very confused! Please help me! NS2(network simualtor) has a Makefile.in but i don't think that i have to change it. -- View this message in context: http://www.nabble.com/how-to-successfully-link-sqlite3----tf4531065.html#a12930338 Sent from the SQLite mailing list archive at Nabble.com. ----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------