I downloaded the file https://github.com/duckdb/duckdb/releases/download/v0.3.2/libduckdb-linux-amd64.zip, but I do not know how to use it in C++.
This file contains the following files:
duckdb.h
duckdb.hpp
libduckdb.so
What should I do after downloading?
The following code that I run:
#include "duckdb.hpp"
using namespace duckdb;
int main () {
DuckDB db (nullptr);
Connection con (db);
con.Query ("CREATE TABLE integers (i INTEGER)");
con.Query ("INSERT INTO integers VALUES (3)");
auto result = con.Query ("SELECT * FROM integers");
result-> Print ();
}
Gives the following error:
undefined reference to `duckdb :: DuckDB :: DuckDB (char const *, duckdb :: DBConfig *) '