sqlite - sqlite3 - how to use with C++ -



sqlite - sqlite3 - how to use with C++ -

this question has reply here:

symbols _sqlite3_open not found error 3 answers

i'm finding several sources of illustration code (such found here) suggest including allow library used. doesn't seem work me. right way start project using sqlite in c++?

the next error i'm getting back:

undefined symbols architecture x86_64: "_sqlite3_close", referenced from: _main in ccjxxmwk.o "_sqlite3_errmsg", referenced from: _main in ccjxxmwk.o "_sqlite3_exec", referenced from: _main in ccjxxmwk.o "_sqlite3_free", referenced from: _main in ccjxxmwk.o "_sqlite3_open", referenced from: _main in ccjxxmwk.o

include amalgamation (the sqlite3.c file) in project (and ensure it's compiled c, not c++).

alternatively, link sqlite library.

c++ sqlite

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -