Alberto *nix forums beginner
Joined: 10 Mar 2005
Posts: 45
|
Posted: Fri Apr 01, 2005 9:27 am Post subject:
compiling errors
|
|
|
Hi,
I'm a newbie not only on dbxml but also on C++ under Unix-like
platforms, so here's a silly question: when I try to compile the
examples that come with the distribution I get the following errors:
/tmp/ccYkMUfv.o(.gnu.linkonce.t._ZN4MyDbD1Ev+0x28): In function
`MyDb::~MyDb [in-charge]()':
: undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::~basic_string
[in-charge]()'
/tmp/ccYkMUfv.o(.gnu.linkonce.t._ZN4MyDbD1Ev+0x3f): In function
`MyDb::~MyDb [in-charge]()':
: undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::~basic_string
[in-charge]()'
/tmp/ccYkMUfv.o(.gnu.linkonce.t._ZN4MyDbD1Ev+0x52): In function
`MyDb::~MyDb [in-charge]()':
: undefined reference to `Db::~Db [in-charge]()'
/tmp/ccYkMUfv.o(.gnu.linkonce.t._ZN4MyDbD1Ev+0x6e): In function
`MyDb::~MyDb [in-charge]()':
: undefined reference to `Db::~Db [in-charge]()'
Lots of those "undefined reference(s)"... Well, that example was for
the db, not dbxml, but I tried it with the dbxml and I get the same
stuff anyway. Have I missed something in the library path or something
like that? Why doesn't the linker find the DB stuff?
Thanks/Alberto |
|