dmd's linking order

Jacob Carlborg doob at me.com
Wed Apr 11 11:30:40 PDT 2012


On 2012-04-11 16:59, Sean Kelly wrote:
> On Apr 11, 2012, at 1:25 AM, Jacob Carlborg<doob at me.com>  wrote:
>
>> Could it happen that the linker arguments need to be placed first sometimes ?
>
> If it's a user-created library then maybe. The general rule on Unix is that dependent objects need to be listed before the object they depend on.  I think the linker only does a single pass. Optlink doesn't have this problem--it's way nicer in this regard.

That would be the only case where optlink is nicer :)

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list