CURL question on ubuntuforums.org

Jacob Carlborg doob at me.com
Fri Jan 6 05:58:02 PST 2012


On 2012-01-05 15:04, Robert Clipsham wrote:
> On 05/01/2012 13:41, Jacob Carlborg wrote:
>> On 2012-01-05 11:00, Nick Sabalausky wrote:
>>> "Joshua Reusch"<yoschi at arkandos.de> wrote in message
>>> news:je26q8$19oo$1 at digitalmars.com...
>>>>
>>>> OT: Why does dmd ignore the pragma(lib, ...) in the etc.c.curl module
>>>> while rdmd seems to recognize it?
>>>
>>> What I think is happening:
>>>
>>> The pragma(lib, ...) causes DMD's -deps=filename option to include the
>>> library file in the dependency list that gets output. RDMD takes that
>>> list
>>> and sends everything in it back to DMD on the command line.
>>> Apperently, DMD
>>> is only forwarding libs to the linker when it receives them on the
>>> command
>>> line (though I don't know why, sounds like a bug to me).
>>
>> Isn't that what it's supposed to do, just forward the lib to the linker?
>>
>
> The only time pragma(lib) works is when the file it's in is provided on
> the command line. rdmd can work around this as it invokes dmd twice,
> there's not a lot that can be done otherwise though.
>

You mean it doesn't work for .di files, I'm aware of that.

http://d.puremagic.com/issues/show_bug.cgi?id=2776

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list