[Cppcms-users] error in cppdb
Brought to you by:
artyom-beilis
From: Baptiste D. <bip...@gm...> - 2010-12-23 18:15:32
|
Hi, I find two bugs in cppdb The first is just a typo in http://cppcms.svn.sourceforge.net/viewvc/cppcms/cppdb/trunk/cppdb/frontend.h?revision=1593&view=markup at line 20, you forget a 'T' in #define CPPDB_FRONEND_H and the second I have an error when I give an instance of cppdb:session to a function to reproduce it ------------------------------------------------- foo.cpp #include <cppdb/frontend.h> void test(cppdb::session sql) { sql << "DROP TABLE IF EXISTS test" << cppdb::exec; } int main() { cppdb::session sql("sqlite3:db=db.db"); test(sql); return 0; } ------------------------------------------------- g++ -lcppdb foo.cpp -o foo boom, I have the followed error during the linking process foo.cpp:(.text+0xef): undefined reference to `cppdb::session::session(cppdb::session const&)' thanks, Baptiste |