I am trying to build a c++ application that uses sql.
For that I need sqlite3
header. I have already installed sql in my system and
sqlite3
in terminal gives:
SQLite version 3.36.0 2021-06-18 18:36:39 Enter ".help" for usage hints. Connected to a transient in-memory database. Use ".open FILENAME" to reopen on a persistent database. sqlite>
I have tried searching for this over web and found many relevant solutions including this.
Since I am working on Windows,
$ sudo apt-get install libsqlite3-dev
did not work. I also tried to change
#include <sqlite3.h>
to
#include "sqlite3.h"
with sqlite.h file in the same directory as my cpp code file(as I found people using it in videos). But this time I ended up with ''' C:\Users\username\AppData\Local\Temp\ccwQfHZB.o:temp.cpp:(.text+0x1e): undefined reference to `sqlite3_open' collect2.exe: error: ld returned 1 exit status '''
I am quite new to it, so any help is appreciated. Thanks.