[Cppcms-users] Problems after upgrading cppcms with booster
Brought to you by:
artyom-beilis
From: augustin <aug...@ov...> - 2011-01-11 07:13:28
|
I was using a much older version of cppcms (from the temporary branch, before it was moved to trunk). I downloaded from svn a fresh copy of cppcms from the trunk. cmake .. make make test sudo make install All without any problem. But now, my own application won't compile anymore. I deleted the build directory of my app, and rebuild from scratch, but I get the following errors: /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `booster::locale::generator::get(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `booster::locale::ext_value(std::ios_base&, booster::locale::flags::value_type)' /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `booster::locale::info::encoding() const' /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `booster::locale::ext_setf(std::ios_base&, booster::locale::flags::display_flags_type, booster::locale::flags::display_flags_type)' /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `void booster::locale::ext_pattern<char>(std::ios_base&, booster::locale::flags::pattern_type, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `booster::locale::impl::convert(booster::locale::impl::conversion_type, char const*, char const*, int, std::locale const*)' /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `booster::locale::generator::octet_encoding(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `booster::locale::generator::preload(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' collect2: ld returned 1 exit status libbooster.so.0.0.0 and libcppcms.so.1.0.0 are all properly installed in /usr/local/lib as before, but with today's timestamp. Actually, I had tried to upgrade cppcms earlier, but got a similar error and reverted to using the older cppcms. I added 'booster' to my target_link_libraries() in CMakeLists.txt (it seems it was not required in earlier versions of cppcms). I deleted the build directory and started again... But now, there are compiler errors about the template object: Linking CXX executable ../my_app.fcgi CMakeFiles/../my_app.fcgi.dir/view.cpp.o: In function `void booster::locale::message::write<char>(std::basic_ostream<char, std::char_traits<char> >&) const': view.cpp: (.text._ZNK7booster6locale7message5writeIcEEvRSt13basic_ostreamIT_St11char_traitsIS4_EE[void booster::locale::message::write<char>(std::basic_ostream<char, std::char_traits<char> >&) const]+0x59): undefined reference to `booster::locale::ios_info::get(std::ios_base&)' view.cpp: (.text._ZNK7booster6locale7message5writeIcEEvRSt13basic_ostreamIT_St11char_traitsIS4_EE[void booster::locale::message::write<char>(std::basic_ostream<char, std::char_traits<char> >&) const]+0x61): undefined reference to `booster::locale::ios_info::domain_id() const' collect2: ld returned 1 exit status where view.cpp is generated by cppcms_tmpl_cc from my template. Augustin. -- 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/ . |