Error: undefined reference to `sqlite3_open'

前端 未结 4 2015
孤独总比滥情好
孤独总比滥情好 2020-12-13 18:28

I\'m trying to get started with the C++ API for SQLite.

#include 
#include 

using namespace std;

int main()
{
    sqlite3         


        
4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-13 18:58

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

    g++ main.cpp -lsqlite3
    

提交回复
热议问题