Boost logo

Boost Users :

From: Jürgen Hunold (juergen.hunold_at_[hidden])
Date: 2007-05-15 03:12:51


Hi Chris !

An'n Maandag 14 Mai 2007 hett Chris Uzdavinis schreven:
> Hi, I'm trying out boost 1.34 and running into some troubles getting
> my test programs to link. They were working fine with 1.33.1, and
> rebuilding with 1.34 now fails to find "main" in the boost unit test
> framework library. After a little investigation, I found that the .so
> does not have main() in it, but the .a does.

Yes.

> System: suse linux 9.1
> compiler: g++ 3.3.3
> boost version: 1.34
> $g++ mytest.cpp -I $BOOST_HDRDIR -L $BOOST_ROOT/lib
> -lboost_unit_test_framework-gcc33-mt-d

You have to define BOOST_TEST_DYN_LINK when using the shared test library on
all platforms.
Please try to add -DBOOST_TEST_DYN_LINK to your command line...

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold_at_[hidden]        ! www.ivembh.de
* 
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !

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