Boost logo

Boost Users :

Subject: [Boost-users] Newbie, just starting.
From: Robillard, Greg L (greg.l.robillard_at_[hidden])
Date: 2012-01-18 14:13:56


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



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net