Subject: Re: [Boost-build] testing : run with dependencies
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-04-16 13:37:45
Guillaume Chatelet wrote:
> Great ! Thanks a lot Steven for this fast and sharp response.
> I'm running in a new issue now because BB wants to link my two programs
>> run player main : --script test-tmp/datas.pb ;
> First I thought it was because both player target and main.cpp have an "int
> main(int, char**)" function.
> Surprisingly enough, the link error is not a "already defined reference" but
> an "undefined reference to `WinMain_at_16'" ( I'm using MinGw under windows )
> Anyway, how can I prevent BB from wanting to link main.o against my player
> program ?
> What I want is just to trigger the player.exe run *after* the main.exe run.
>>>> From the signature of run :
>>>> rule run ( sources + : args * : input-files * : requirements * :
>>>> target-name ? : default-build *
Add <dependency>main to the requirements of player instead of
adding main to the desc
run main.cpp : ... ;
run player.cpp : ... : : <dependency>main ;
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