|
Boost-Build : |
Subject: Re: [Boost-build] link switches
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2017-11-12 22:14:50
AMDG
On 11/12/2017 03:03 PM, Robert Ramey via Boost-build wrote:
> Putting the finishing touches on my fix to the serialization library
> tests, I have two pesky tests left. One is to test a shared library
> plugin on unix/linix. Boiled down to it's essentials, the jamfile looks
> like:
>
> ...
> lib polymorphic_derived2
> :
> polymorphic_derived2.cpp
> :
> ;
> ...
> run test_dll_plugin : polymorphic_derived2 : <link>static:<build>no
> <linkflags>-ldl ]
>
> But I'm getting an error when I invoke the jamfile:
>
> don't know how to make <e>polymorphc_derived2
>
> So what am I doing wrong here?
>
You have the arguments for `run` in the wrong order.
http://www.boost.org/build/doc/html/bbv2/builtins/testing.html
rule run ( sources + : args * : input-files * : requirements *
: target-name ? : default-build * )
> fyi - I also got the same result with:
>
> lib dll_polymorphic_derived2_lib
> :
> polymorphic_derived2.cpp
> :
> ;
>
In Christ,
Steven Watanabe
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