I installed libsqlite3-dev from ubuntu software center and after the installation, i found the sqlite3.h file in usr/include folder. There was no error in including that header file, but i am not able to use the functions declared in it. It shows the error 'Undefined reference to sqlite_open' and same for all other functions declared in it.
Asked
Active
Viewed 853 times
1 Answers
1
The sqlite program and the library has not linked this might have caused the issue. In this case please try the below,
g++ mail.cpp -lsqlite3
BDRSuite
- 3,196
- 1
- 13
- 11