Boost logo

Boost-Build :

Subject: Re: [Boost-build] build error
From: Jurko Gospodnetić (jurko.gospodnetic_at_[hidden])
Date: 2012-07-14 04:57:27


   Hi.

> *Hi, I am installing a software 'Tophat', which requires boost. I
> compiled boost in a linux system using:
>
> ./b2 install --prefix=/users/jwu runtime-link=static link=static
>
> I got error message:
> ...

   Sorry, I can not reproduce your error using msvc on Windows or gcc on
Cygwin. The same command-line (with a different prefix though) works
fine here in both cases.

> error: Duplicate name of actual target:
> <p/users/jwu/lib>libboost_thread.a
> ...
> error: added properties: <library>object(file-target)@1549
> <library>object(file-target)@1581 <runtime-link>shared
> error: removed properties: <library>object(file-target)@822
> <library>object(file-target)@844 <runtime-link>static

   This seems to indicate something is trying to build the thread
library with both static and shared runtimes, naming both of the
resulting library files the same (/users/jwu/lib/libboost_thread.a).

> *So, I need to compile boost with 'static' option because the software
> 'tophat' requires it. How should I fix this problem? Thank you!

   Try building Boost without the thread library to see if the problem
is specific to just that library's build definition, i.e. add the
--without-thread option.

   Hope this helps.

   Best regards,
     Jurko Gospodnetić


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