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: Maróy Ákos (akos_at_[hidden])
Date: 2009-04-14 12:04:48


Gennadiy,

Gennadiy Rozental wrote:
> 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.

works wonderfully - thank you!

Akos


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