Boost logo

Boost-Build :

Subject: Re: [Boost-build] Always link against release version of Boost libraries
From: Jürgen Hunold (juergen.hunold_at_[hidden])
Date: 2011-02-19 06:13:20


Hi,

On Saturday, 19. February 2011 10:35:55 Boris Schaeling wrote:
> Is there a way to always link against the release version of the Boost
> libraries (because the debug version hasn't been built and is not
> available on a server)? I'm on Linux and want g++ to link against
> boost_regex and not against boost_regex-d (which g++ picks because of
> auto-linking).

No auto-linking with gcc. Seems to be the setup boost.jam causing this.

> Adding <variant>release doesn't work but maybe something
> else does?
>
> using boost : 1.38 : <layout>system <variant>release ;
> import boost ;
> boost.use-project 1.38 ;
> exe test : test.cpp /boost//regex ;

Please try (untested) this instead:

 exe test : test.cpp /boost//regex/<variant>release ;

this syntax works at least for <link>shared.

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-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk