#pragma comment (lib, ...)
Paulo Pinto
pjmlp at progtools.org
Wed Oct 10 04:49:37 PDT 2012
On Wednesday, 10 October 2012 at 11:50:29 UTC, Manu wrote:
> On 10 October 2012 14:15, Iain Buclaw <ibuclaw at ubuntu.com>
> wrote:
>
>> 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.
>>
>
> Really? Is it an MS thing? I'm amazed the other compilers
> haven't adopted
> that in the last 10 years or whatever.
Yes, it is a Microsoft extension. I never saw it in any other C
or C++ compiler.
Maybe Intel and CodeGear compilers have it, since they value MSVC
compatibility.
--
Paulo
More information about the Digitalmars-d
mailing list