Boost logo

Boost-Build :

From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2006-11-13 03:19:43


Phillip Seaver wrote:
> Vladimir Prus wrote:

[snip]

>>
>> Ok, now what do you think should happen on MSVC, for the following
>> example:
>>
>> exe a : a.cpp
>> : <threading>single <runtime-link>shared
>> ;
>>
>> Should this silently use <threading>multi, or be a an error?
>
>
> Whichever you choose to silently ignore, it will be wrong for
> someone. :->
>
> Seriously, though, I think it should be an error. Either the user
> will
> get multi-threaded code when they didn't expect it, or they will be
> linking the static CRT in when they wanted to link against the DLL.
> It
> violates the principle of least surprise.

+1 for generating an error.

/ Johan


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