CURL question on ubuntuforums.org

Robert Clipsham robert at octarineparrot.com
Thu Jan 5 06:04:43 PST 2012


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.

-- 
Robert
http://octarineparrot.com/


More information about the Digitalmars-d mailing list