Re: [sqlite] Testing SQLite in C++
Excellent! Thanks dude! -Original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Pavel Ivanov Sent: Thursday, October 20, 2011 11:06 AM To: General Discussion of SQLite Database Subject: Re: [sqlite] Testing SQLite in C++ Do not include sqlite3ext.h. Applications need only sqlite3.h. Pavel On Thu, Oct 20, 2011 at 11:02 AM, Arbol One <arbol...@gmail.com> wrote: > Hey kids, I am testing SQLite in the hope that I can use it in my program, > but I get this confusing error msg, Can anybody help? > > > > Error message > > > > D:\dev\sqlitetest\main.cpp:14:10: error: 'sqlite3_api' was not declared in > this scope > > > > Code > > ~ > > #include > > #include "sqlite/sqlite3.h" > > #include "sqlite/sqlite3ext.h" > > #include > > int main() { > > sqlite3 *db; > > Glib::ustring dbName("sqliteTest"); > > int rc; > > > > rc = sqlite3_open(dbName.c_str(), ); // ç Error Message comes as soon > as I add this line > > > > std::cout << "Hello world!" << std::endl; > > return 0; > > } > > > > Thanks in advance!! > > ___ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] Testing SQLite in C++
Do not include sqlite3ext.h. Applications need only sqlite3.h. Pavel On Thu, Oct 20, 2011 at 11:02 AM, Arbol Onewrote: > Hey kids, I am testing SQLite in the hope that I can use it in my program, > but I get this confusing error msg, Can anybody help? > > > > Error message > > > > D:\dev\sqlitetest\main.cpp:14:10: error: 'sqlite3_api' was not declared in > this scope > > > > Code > > ~ > > #include > > #include "sqlite/sqlite3.h" > > #include "sqlite/sqlite3ext.h" > > #include > > int main() { > > sqlite3 *db; > > Glib::ustring dbName("sqliteTest"); > > int rc; > > > > rc = sqlite3_open(dbName.c_str(), ); // ç Error Message comes as soon > as I add this line > > > > std::cout << "Hello world!" << std::endl; > > return 0; > > } > > > > Thanks in advance!! > > ___ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
[sqlite] Testing SQLite in C++
Hey kids, I am testing SQLite in the hope that I can use it in my program, but I get this confusing error msg, Can anybody help? Error message D:\dev\sqlitetest\main.cpp:14:10: error: 'sqlite3_api' was not declared in this scope Code ~ #include #include "sqlite/sqlite3.h" #include "sqlite/sqlite3ext.h" #include int main() { sqlite3 *db; Glib::ustring dbName("sqliteTest"); int rc; rc = sqlite3_open(dbName.c_str(), ); // ç Error Message comes as soon as I add this line std::cout << "Hello world!" << std::endl; return 0; } Thanks in advance!! ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users