Boost logo

Boost-Build :

Subject: Re: [Boost-build] Duplicate name of actual target, sort of...
From: Simply Seven (simply7_at_[hidden])
Date: 2009-02-13 15:25:05


Thanks guys. Got it all working.

Is this linker warning normal under these conditions with boost-build?

/usr/bin/libtool: warning same member name (client.o) in output file
used for input files: bin/darwin-4.0.1/debug/link-static/upnp/src/
client.o and: bin/darwin-4.0.1/debug/link-static/nat-pmp/src/client.o
(due to use of basename, truncation, blank padding or duplicate input
files)
/usr/bin/libtool: warning same member name (client.o) in output file
used for input files: bin/darwin-4.0.1/debug/link-static/nat-pmp/src/
client.o and: bin/darwin-4.0.1/debug/link-static/stun/src/client.o
(due to use of basename, truncation, blank padding or duplicate input
files)

Thanks in advance!

On Feb 13, 2009, at 2:32 AM, Vladimir Prus wrote:

> On Wednesday 11 February 2009 10:23:18 Simply Seven wrote:
>>
>> Hi,
>>
>> I have a rule that looks like so:
>>
>> rule building ( properties * )
>> {
>> local result ;
>>
>> # nat-pmp
>> result += <source>../nat-pmp/src/client.cpp ;
>>
>> # upnp
>> result += <source>../upnp/src/client.cpp ;
>> result += <source>../upnp/src/commands.cpp ;
>> result += <source>../upnp/src/description.cpp ;
>> result += <source>../upnp/src/device.cpp ;
>> result += <source>../upnp/src/error_code.cpp ;
>> result += <source>../upnp/src/soap.cpp ;
>> result += <source>../upnp/src/xml.cpp ;
>>
>> return $(result) ;
>> }
>>
>> I am having the duplicate problem because the two "client.cpp"
>> files that are in separate directories.
>>
>> I assume I need to change the obj files of these duplicate cases
>> but I have no idea how.
>
> This is documented at http://www.boost.org/boost-build2/doc/html/bbv2/faq/s02.html
> Alternatively, you can try SVN HEAD version of Boost.Build which
> might automatically
> put object files in different directories.
>
> - Volodya
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build


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