Re: [Cppcms-users] error in cppdb
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2010-12-23 18:55:03
|
Thanks! Fixed in trunk. Artyom > >From: Baptiste Ducatel <bip...@gm...> >To: cpp...@li... >Sent: Thu, December 23, 2010 8:15:19 PM >Subject: [Cppcms-users] error in cppdb > >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 > > |