
I am trying to get my boost libraries up and running, so I can start using the test framework. When running: #define BOOST_TEST_MODULE const_string test #include <boost/test/unit_test.hpp> // EOF I get the following error: xlC_r -I /home/.../BoostTest/boost_1_48_0 newTest.cpp -o newTest ld: 0711-317 ERROR: Undefined symbol: boost::unit_test::__vftQ3_5boost9unit_test15unit_test_log_tQ3_5boost9unit_test13test_observer ld: 0711-317 ERROR: Undefined symbol: .boost::unit_test::framework::master_test_suite() ld: 0711-317 ERROR: Undefined symbol: .main ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. Alternately, when I try to run: #include <boost/lambda/lambda.hpp> #include <iostream> #include <iterator> #include <algorithm> int main() { using namespace boost::lambda; typedef std::istream_iterator<int> in; std::for_each( in(std::cin), in(), std::cout << (_1 * 3) << " " ); } I receive the following error: "/home/.../BoostTest/boost_1_48_0/boost/lambda/detail/function_adaptors.hpp", line 29.1: 1540-0063 (S) The text ">" is unexpected. Any assistance would be great. Greg

Robillard, Greg L <greg.l.robillard <at> lmco.com> writes:
I think you need better title.
I am trying to get my boost libraries up and running, so I can start using the test framework. ld: 0711-317 ERROR: Undefined symbol: boost::unit_test::__vftQ3_5boost9unit_test15unit_ test_log_tQ3_5boost9unit_test13test_observer
You need to link with the Boost.Test library. Gennadiy
participants (2)
-
Gennadiy Rozental
-
Robillard, Greg L