On Wednesday, 10 October 2012 at 11:50:29 UTC, Manu wrote:
On 10 October 2012 14:15, Iain Buclaw <ibuc...@ubuntu.com>
wrote:
On 10 October 2012 09:31, Manu <turkey...@gmail.com> wrote:
> Percect, thanks!
>
>
> On 10 October 2012 11:27, Walter Bright
> <newshou...@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