[Cppcms-users] Starting with DbiXX
Brought to you by:
artyom-beilis
From: augustin <aug...@ov...> - 2010-07-14 11:43:40
|
Hello, Is the DbiXX documentation up to date? http://art-blog.no-ip.info/wikipp/en/page/tut_into_dbixx I see that the last edit dates back to 2008. I followed the instructions to install the DbiXX libs and I think I installed it properly. But I cannot compile the exact same example as given at the top of the tutorial above. See the compiler output at the bottom. I thought it was again a library path problem and tried various combination of the advice you gave me previously ( export LD_LIBRARY_PATH=/usr/local/lib etc.) but to no avail. Since the compiling method seems different, I'm not too sure how to proceed. $ c++ ../sql_test.cpp -o SQL /tmp/ccAkCTv1.o: In function `main': sql_test.cpp:(.text+0x41): undefined reference to `dbixx::session::session(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' sql_test.cpp:(.text+0xab): undefined reference to `dbixx::session::~session()' sql_test.cpp:(.text+0x10a): undefined reference to `dbixx::session::param(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' sql_test.cpp:(.text+0x201): undefined reference to `dbixx::session::param(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' sql_test.cpp:(.text+0x28d): undefined reference to `dbixx::session::connect()' sql_test.cpp:(.text+0x324): undefined reference to `dbixx::session::exec()' sql_test.cpp:(.text+0x3c7): undefined reference to `dbixx::session::exec()' sql_test.cpp:(.text+0x60a): undefined reference to `dbixx::session::single(dbixx::row&)' sql_test.cpp:(.text+0x76c): undefined reference to `dbixx::session::fetch(dbixx::result&)' sql_test.cpp:(.text+0x799): undefined reference to `dbixx::result::rows()' sql_test.cpp:(.text+0x880): undefined reference to `dbixx::result::next(dbixx::row&)' sql_test.cpp:(.text+0x897): undefined reference to `dbixx::result::~result()' sql_test.cpp:(.text+0x8ad): undefined reference to `dbixx::result::~result()' sql_test.cpp:(.text+0x8c4): undefined reference to `dbixx::row::~row()' sql_test.cpp:(.text+0x8da): undefined reference to `dbixx::row::~row()' sql_test.cpp:(.text+0x8f1): undefined reference to `dbixx::session::~session()' sql_test.cpp:(.text+0x907): undefined reference to `dbixx::session::~session()' /tmp/ccAkCTv1.o: In function `dbixx::session::bind(int const&, bool)': sql_test.cpp:(.text._ZN5dbixx7session4bindERKib[dbixx::session::bind(int const&, bool)]+0x34): undefined reference to `dbixx::session::bind(long long const&, bool)' /tmp/ccAkCTv1.o: In function `dbixx::session::operator<<(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': sql_test.cpp: (.text._ZN5dbixx7sessionlsERKSs[dbixx::session::operator<<(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)]+0x1f): undefined reference to `dbixx::session::query(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /tmp/ccAkCTv1.o: In function `dbixx::session::operator,(dbixx::exec const&)': sql_test.cpp:(.text._ZN5dbixx7sessioncmERKNS_4execE[dbixx::session::operator, (dbixx::exec const&)]+0x18): undefined reference to `dbixx::session::exec()' /tmp/ccAkCTv1.o: In function `dbixx::session& dbixx::session::operator,<char const*>(char const*)': sql_test.cpp:(.text._ZN5dbixx7sessioncmIPKcEERS0_T_[dbixx::session& dbixx::session::operator,<char const*>(char const*)]+0x4a): undefined reference to `dbixx::session::bind(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)' /tmp/ccAkCTv1.o: In function `dbixx::row& dbixx::row::operator>><std::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)': sql_test.cpp:(.text._ZN5dbixx3rowrsISsEERS0_RT_[dbixx::row& dbixx::row::operator>><std::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)]+0x36): undefined reference to `dbixx::row::fetch(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' /tmp/ccAkCTv1.o: In function `dbixx::row& dbixx::row::operator>><int>(int&)': sql_test.cpp:(.text._ZN5dbixx3rowrsIiEERS0_RT_[dbixx::row& dbixx::row::operator>><int>(int&)]+0x36): undefined reference to `dbixx::row::fetch(int, int&)' collect2: ld returned 1 exit status -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |