Boost logo

Boost-Build :

From: Zbynek Winkler (zw-bjam_at_[hidden])
Date: 2004-09-29 04:37:28


Vladimir Prus wrote:

>Hi Zbynek,
>
>
>>Hello! I think that the following worked also for msvc:
>>
>> lib test : : <name>test ;
>>
>>
>
>I could not confirm this. When I do:
>
> lib m : : <name>m ;
> exe a : a.cpp m ;
>
>The command include:
>
> echo "m.lib" >> "bin/msvc-7.1/debug/a.rsp"
>
>which looks right.
>
This is really strange. I just updated to the latest cvs version and I
still have this problem. Actually runing with -d2 gives me:

echo FOX-1.2 >> "bin\msvc-7.1\debug\threading-multi\main.rsp"

I experimented with it and the reason is that there is a dot in the
name. When I remove it, the lib suffix is appended. So I guess this
would be a bug?

>BTW, in CVS version,
>
> lib m ;
>
>would also work.
>
>
>
>>However, it seems that now I need to say <name>test.lib in order to link
>>to the library. So I tried to workaround this problem by
>>
>> lib test : : <name>test <toolset>gcc ;
>> lib test : : <name>test.lib <toolset>msvc ;
>>
>>which I think also used to work, but it does not now "because no
>>best-matching alternative could be found" :-(. Why is that?
>>
>>
>
>I can't confirm this either. With those line, "bjam -n msvc gcc" works just
>fine.
>
>
Sorry, my example was not complete. The following exibits the error with
latest cvs when calling bjam with no params. When building only target
a, it works.

project
: requirements <threading>multi
;

lib test : : <name>test <toolset>gcc ;
lib test : : <name>test.lib <toolset>msvc ;
exe a : a.cpp test ;

Zbynek

-- 
http://zw.matfyz.cz/ http://robotika.cz/
Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic
 

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