|SQLite library for C++ [message #1390010]
||Sat, 28 June 2014 19:11
| Ondra Yogger
Registered: June 2014
I am new to c++ and eclipse and I have come to this problem. I dont know how corectly link sqlite3 api to my c++ project in eclipse.
I am trying to compile and execute simple example of connecting to database (from tutorial), but it ends with these errors:
undefined reference to `sqlite3_open'
undefined reference to `sqlite3_errmsg'
undefined reference to `sqlite3_close'
I am using ubuntu and I already installed libsqlite3-dev. I am able to create and manage db in command line, so I know it is working.
I also know that most probably I have to change theese settings:
Properties>>C/C++ Build>>Settings>>GCC C++ Compiler >> Includes
Properties>>C/C++ Build>>Settings>>GCC C++ Linker >> Libraries
but I dont know how exactly. Could anyone help me please?
Powered by FUDForum
. Page generated in 0.13492 seconds