Linking to static gtkd libraries

Marco Leise Marco.Leise at gmx.de
Mon Apr 23 17:02:50 PDT 2012


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'm using the latest gdc from github, with the latest gcc snapshot, on 
> both 32- and 64-bit linux.
> 
> Could this be related to https://bitbucket.org/goshawk/gdc/issue/284/ 
> and if so, is there any way around it?
> 
> --Ed

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. ;)

-- 
Marco



More information about the D.gnu mailing list