soci c++ on ubuntu 8.10
December 6th, 2008 5:41 am
If you try to build soci-3.0.0 on ubuntu 8.10 you might get some annoying error. I list below the errors and their fixes:
common.h:24: error: ‘std::tm’ has not been declared
fix: add to common.h:
#include <ctime>
errors in file session.cpp:
session.cpp:134: error: ‘strtol’ is not a member of ‘std’
error: ‘INT_MAX’ was not declared in this scope
fix: add to session.cpp
#include <cstdlib>
#include <climits>
in file standard-into-type.cpp:
standard-into-type.cpp:84: error: ‘strncpy’ is not a member of ‘std’
fix:add to standard-into-type.cpp
#include <cstring>
Links related to the soci library:
- http://soci.sourceforge.net/
- http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?Relational_Database_Access
- http://www.ddj.com/cpp/188700800?pgno=3
- http://erdani.org/publications/traits.html