[boost-users][unit-test-framework] Problem linking tests.

Hello all. I'm having a hard time trying to link a binary against
libbost_unit_test_framework.
I was developing some software in my laptop. This laptop has installed
boost libraries from the repositories (it's boost-1.40 ubuntu 10.04).
I had to pass this code to another computer, which hadn't boost
installed, so I copied what I had in ubuntu from the repositories into
my project, headers
included. My project uses boost_system and boost_thread as well. Both
machines are 64 bit machines with intel. But when compiling, I get
this:
td::char_traits<char> >::_M_extract<unsigned long>(unsigned
long&)@GLIBCXX_3.4.9'
/home/gdiago/clientserver/deps/boost-1.40/lib/libboost_unit_test_framework.so:
undefined reference to `std::basic_ostream

Germán Diago
Hello all. I'm having a hard time trying to link a binary against libbost_unit_test_framework.
I was developing some software in my laptop. This laptop has installed boost libraries from the repositories (it's boost-1.40 ubuntu 10.04).
I had to pass this code to another computer, which hadn't boost installed, so I copied what I had in ubuntu from the repositories into my project, headers included. My project uses boost_system and boost_thread as well. Both machines are 64 bit machines with intel. But when compiling, I get this:
td::char_traits<char> >::_M_extract<unsigned long>(unsigned long&)@GLIBCXX_3.4.9'
Looks like you've got different glibc versions. I suggect you try single header version of boost test and avoid linking altogether. Gennadiy

thanks. I didn't know of the only-header version.
2010/7/1 Gennadiy Rozental
Germán Diago
writes: Hello all. I'm having a hard time trying to link a binary against libbost_unit_test_framework.
I was developing some software in my laptop. This laptop has installed boost libraries from the repositories (it's boost-1.40 ubuntu 10.04).
I had to pass this code to another computer, which hadn't boost installed, so I copied what I had in ubuntu from the repositories into my project, headers included. My project uses boost_system and boost_thread as well. Both machines are 64 bit machines with intel. But when compiling, I get this:
td::char_traits<char> >::_M_extract<unsigned long>(unsigned long&)@GLIBCXX_3.4.9'
Looks like you've got different glibc versions. I suggect you try single header version of boost test and avoid linking altogether.
Gennadiy
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Gennadiy Rozental
-
Germán Diago