Error: undefined reference to `sqlite3_open’

You need to link the sqlite3 library along with your program:

g++ main.cpp -lsqlite3

Leave a Comment