Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2002-02-19 09:04:52

At 01:13 AM 2/19/2002, Jason Shirk wrote:
>> -----Original Message-----
>> From: Beman Dawes [mailto:bdawes_at_[hidden]]
>> At 01:53 PM 2/18/2002, bill_kempf wrote:
>> >> Can you put a specific check into the threadmod code to give an
>> >#error if
>> >> it isn't being compiled as a DLL? Only to apply to appropriate
>> >compilers,
>> >> of course. Would save a lot of grief, I'd expect.
>> >
>> >I'm not sure if there is a way to do this. If there is I'd love to
>> >hear about it.
>> Hum... I was thinking that _DLL did it. But that specifies the
>> library used, not what the target is.
>> Jason? Any ideas?
>Sorry, there isn't a way to do that. The only define /LD adds is _MT,
>and that's used w/ /MT and /MD, so it doesn't help.

Might be worth a new predefined macro. _DLL_TARGET or similar.

Anything a compiler implementor can do that allows better error detection
is a win for users, and cuts support costs too.


Boost list run by bdawes at, gregod at, cpdaniel at, john at