Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to build a lib and exe with same name
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-10-19 10:10:53


AMDG

On 10/18/2012 03:24 AM, Ñî¼Ì³¬ wrote:
> lib calc : basic_calc.c advance_calc.c calc.h ;
> exe calc : app.c calc
>
> I want calc.dll(with calc.lib) and calc.exe, but failed.
> If change exe calc to exe test then everything is ok.
> But if change to exe calc: app.c : <lib>calc ; , then boost.build will only
> build the library.
>

Try

lib calc.lib : ... ;

or

exe calc.exe : ... ;

(Boost.Build only uses the extension to distinguish
between main targets, it won't affect the names
of the files created. You could use lib calc.xyz
and it would still work.)

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