Required to link windows header modules (?)

Sean Kelly sean at f4.ca
Sun Jun 11 11:27:24 PDT 2006


Derek Parnell wrote:
> On Mon, 12 Jun 2006 00:31:42 +1000, Bruno Medeiros 
> <brunodomedeirosATgmail at SPAM.com> wrote:
> 
>> Sean Kelly wrote:
>>>  This would actually address a problem I noticed with Build in that 
>>> it isn't able to detect if a module is a "header" module and will 
>>> compile and link the code in anyway, which produces "previous 
>>> definition different" errors at link time.
>>>   Sean
>>
>> Hum, Have you used build exclusions (option -X) in order not to 
>> compile and link a module?
>>
> 
> I think that the best option for now is to use
> 
>   version(build) pragma(nolink);
> 
> This will ensure that the file containing this pragma is not compiled or 
> linked.

Yup.  This is what I've been doing.


Sean



More information about the Digitalmars-d-bugs mailing list