Boost logo

Boost Users :

Subject: Re: [Boost-users] issues with unit tests on intel 32 bit, gcc 4.3, undefined reference to `__sync_fetch_and_add_4'
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2009-04-14 11:52:53


Maróy Ákos <akos <at> maroy.hu> writes:

> > I'd suggest you to try to use single header variant of Boost.Test
> > and thus avoid any linking issues.
>
> hm, which would be...? this is my source code:
>
> #include <boost/test/unit_test.hpp>

#include <boost/test/included/unit_test.hpp>
 
> using namespace boost::unit_test;
>
> test_suite *
> init_unit_test_suite(int, char ** const) {
> test_suite *ts = BOOST_TEST_SUITE("test_suite");
> framework::master_test_suite().add(ts);
>
> return 0;
> }

And remove any libs from link line.

Gennadiy


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