wxSQLite compile errors

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
DarthVega7
In need of some credit
In need of some credit
Posts: 7
Joined: Sat Feb 21, 2015 6:29 pm

wxSQLite compile errors

Post by DarthVega7 » Fri Mar 13, 2015 11:34 pm

I'm not sure if this is in the right forum? Sorry.

Whenever I try to compile my wxSmith program with wxSQLite commands I get this set of errors:

Code: Select all

||=== Build: Debug in wxBT3 (compiler: GNU GCC Compiler) ===|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3Exception17ErrorCodeAsStringEi':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|464|undefined reference to `sqlite3_errstr'|
obj\Debug\wxsqlite3.o||In function `ZN24wxSQLite3StatementBuffer5ClearEv':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|570|undefined reference to `sqlite3_free'|
obj\Debug\wxsqlite3.o||In function `ZN24wxSQLite3StatementBuffer6FormatEPKcz':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|580|undefined reference to `sqlite3_vmprintf'|
obj\Debug\wxsqlite3.o||In function `ZN24wxSQLite3StatementBuffer7FormatVEPKcPc':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|588|undefined reference to `sqlite3_vmprintf'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3ResultSetC2EP26wxSQLite3DatabaseReferenceP27wxSQLite3StatementReferencebb':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|640|undefined reference to `sqlite3_column_count'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3ResultSetD2Ev':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|663|undefined reference to `sqlite3_close'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3ResultSet11GetAsStringEi':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|716|undefined reference to `sqlite3_column_text'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3ResultSet11GetAsStringERK8wxString':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|723|undefined reference to `sqlite3_column_text'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3ResultSet6GetIntEii':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|735|undefined reference to `sqlite3_column_int'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3ResultSet8GetInt64Ei16wxLongLongNative':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|754|undefined reference to `sqlite3_column_int64'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3ResultSet9GetDoubleEid':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|772|undefined reference to `sqlite3_column_double'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3ResultSet9GetStringEiRK8wxString':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|790|undefined reference to `sqlite3_column_text'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3ResultSet7GetBlobEiRi':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|810|undefined reference to `sqlite3_column_bytes'|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|811|undefined reference to `sqlite3_column_blob'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3ResultSet7GetBlobEiR14wxMemoryBuffer':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|829|undefined reference to `sqlite3_column_bytes'|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|830|undefined reference to `sqlite3_column_blob'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3ResultSet15FindColumnIndexERK8wxString':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1079|undefined reference to `sqlite3_column_name'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3ResultSet13GetColumnNameEi':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1100|undefined reference to `sqlite3_column_name'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3ResultSet21GetDeclaredColumnTypeEi':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1113|undefined reference to `sqlite3_column_decltype'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3ResultSet13GetColumnTypeEi':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1126|undefined reference to `sqlite3_column_type'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3ResultSet7NextRowEv':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1153|undefined reference to `sqlite3_step'|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1167|undefined reference to `sqlite3_finalize'|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1169|undefined reference to `sqlite3_errmsg'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3ResultSet8FinalizeEv':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1186|undefined reference to `sqlite3_close'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3ResultSet8FinalizeEP26wxSQLite3DatabaseReferenceP27wxSQLite3StatementReference':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1197|undefined reference to `sqlite3_finalize'|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1203|undefined reference to `sqlite3_errmsg'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3ResultSet6GetSQLEv':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1219|undefined reference to `sqlite3_sql'|
obj\Debug\wxsqlite3.o||In function `ZN14wxSQLite3Table8FinalizeEv':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1364|undefined reference to `sqlite3_free_table'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3StatementD2Ev':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1799|undefined reference to `sqlite3_close'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3Statement13ExecuteUpdateEv':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1841|undefined reference to `sqlite3_step'|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1845|undefined reference to `sqlite3_changes'|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1847|undefined reference to `sqlite3_reset'|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1851|undefined reference to `sqlite3_errmsg'|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1859|undefined reference to `sqlite3_reset'|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1860|undefined reference to `sqlite3_errmsg'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3Statement12ExecuteQueryEv':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1870|undefined reference to `sqlite3_step'|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1882|undefined reference to `sqlite3_reset'|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1883|undefined reference to `sqlite3_errmsg'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3Statement13GetParamCountEv':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1905|undefined reference to `sqlite3_bind_parameter_count'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3Statement13GetParamIndexERK8wxString':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1915|undefined reference to `sqlite3_bind_parameter_index'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3Statement12GetParamNameEi':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1921|undefined reference to `sqlite3_bind_parameter_name'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3Statement4BindEiRK8wxString':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1933|undefined reference to `sqlite3_bind_text'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3Statement4BindEii':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1944|undefined reference to `sqlite3_bind_int'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3Statement4BindEi16wxLongLongNative':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1955|undefined reference to `sqlite3_bind_int64'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3Statement4BindEid':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1966|undefined reference to `sqlite3_bind_double'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3Statement4BindEiPKc':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1977|undefined reference to `sqlite3_bind_text'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3Statement4BindEiPKhi':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|1989|undefined reference to `sqlite3_bind_blob'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3Statement4BindEiRK14wxMemoryBuffer':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|2002|undefined reference to `sqlite3_bind_blob'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3Statement8BindNullEi':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|2103|undefined reference to `sqlite3_bind_null'|
obj\Debug\wxsqlite3.o||In function `ZN18wxSQLite3Statement12BindZeroBlobEii':|
C:\Users\Josh\Documents\wxBT3\wxsqlite3.cpp|2115|undefined reference to `sqlite3_bind_zeroblob'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build failed: 50 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|


DarthVega7
In need of some credit
In need of some credit
Posts: 7
Joined: Sat Feb 21, 2015 6:29 pm

Re: wxSQLite compile errors

Post by DarthVega7 » Fri Mar 13, 2015 11:58 pm

Fixed it! Had to link to sqlite3.a

Post Reply