Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-10-16 09:55:17


On Monday 16 October 2006 17:22, Daniel Lidström wrote:
> Hi!
>
> How do I link against a system library, depending on toolset? Here's my
> attempt:
>
> # main library target ################################################
> lib GFL-1
>
> # sources ############################################################
>
> : GFL/GFL.cpp
>
> <toolset>msvc:<name>WS2_32.lib # link with WS2_32.lib if msvc
>
> # requirements #######################################################
>
> ;
>
> This causes an error:
>
> C:\projects\SVN\GFL\trunk\>
>
> : bjam msvc-7.1 -q -oupdates.txt
>
> C:/projects/SVN/Vendor/boost-build/build\targets.jam:1044: in
> basic-target.__init__ from module object(typed-target)@75
> error: gristed element in sources for ./GFL-1
....
>: in boost-build from module
> C:\projects\SVN\GFL\trunk\boost-build.jam:1: in module scope from module
>
> What does 'gristed element' mean?

Something internal. Here's what I get in my local tree:

ghost_at_wind:/tmp/xxx$ bjam
error: at Jamroot:11
error: properties found in the 'sources' parameter for ./GFL-1

Does this error message make more sense? If so, I'll commit the change.

> I have a lot of aliases. Is it possible to put system library dependencys
> with the alias, instead of,
> as in my case, the main library target?

I'm not sure what you mean; can you clarify?

- Volodya


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