Boost logo

Boost Users :

Subject: Re: [Boost-users] segfault using boost test
From: David M. Lee (dlee_at_[hidden])
Date: 2010-11-09 11:46:35


On Nov 9, 2010, at 12:03 AM, David M. Lee wrote:

> On Nov 8, 2010, at 2:19 PM, David M. Lee wrote:
>
>> I'm consistently getting segfaults trying to use boost test on my Mac. The test works fine on Linux.
>
>
> Even stranger: I only get the segfault if I link against unit_test_framework.
>
> dave
> <><
>

If I #include <boost/test/unit_test.hpp>, I get a linker error:

g++ -o simple-test simple-test.cpp -lboost_unit_test_framework
Undefined symbols:
  "_main", referenced from:
      start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

dave
<><



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