Linking to static gtkd libraries

Ed McCardell edmccard at hotmail.com
Tue Apr 24 04:15:02 PDT 2012


On 04/23/2012 08:02 PM, Marco Leise wrote:
> Am Mon, 23 Apr 2012 19:30:25 -0400
> schrieb Ed McCardell<edmccard at hotmail.com>:
>
>> I've built gtkD as a static library using gdc, but whenever I try to
>> link libgtkd.a into another program, I get dozens of errors like
>>
>> /path/to/libgtkd.a(HScrollbar.o)(.data+0x80)undefined reference to `____t.0'
> I tend to post to that issue now and then. There are actually two issues in one.
> One has to do with LTO and errors in the form of ___t.2234.2342.23 and the other I get with any of the recent GDC sources is what you see: ____t.<some number>  errors. The difference is in the amount of dot separated numbers. You can choose to use the revision that is given in that bug report. It works as long as you don't use LTO. ;)

Thanks, that's working for me. Now just cross my fingers and hope I 
don't run into any of the bugs fixed by later revisions ;)

--Ed


More information about the D.gnu mailing list