#pragma comment (lib, ...)

Iain Buclaw ibuclaw at ubuntu.com
Wed Oct 10 04:15:16 PDT 2012


On 10 October 2012 09:31, Manu <turkeyman at gmail.com> wrote:
> Percect, thanks!
>
>
> On 10 October 2012 11:27, Walter Bright <newshound2 at digitalmars.com> wrote:
>>
>> On 10/10/2012 1:22 AM, Manu wrote:
>>>
>>> Does D support some sort of #pragma lib?
>>
>>
>> Yes:
>>
>>     pragma(lib, "mylib.lib");
>
>

NB: GCC has no such equivalent, and IMO libraries should be specified
during the linking step. Such information simply doesn't belong inside
a source file as a source file can be compiled or assembled even
without a linking stage.

Regards,
-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


More information about the Digitalmars-d mailing list