D.gnu - Linking to static gtkd libraries
- Ed McCardell (8/8) Apr 23 2012 I've built gtkD as a static library using gdc, but whenever I try to
- Marco Leise (6/18) Apr 23 2012 I tend to post to that issue now and then. There are actually two issues...
- Ed McCardell (4/12) Apr 24 2012 Thanks, that's working for me. Now just cross my fingers and hope I
- fazlehayat (1/12) Apr 25 2012
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
Apr 23 2012
Am Mon, 23 Apr 2012 19:30:25 -0400 schrieb Ed McCardell <edmccard 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? --EdI 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
Apr 23 2012
On 04/23/2012 08:02 PM, Marco Leise wrote:Am Mon, 23 Apr 2012 19:30:25 -0400 schrieb Ed McCardell<edmccard hotmail.com>: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 ;) --EdI'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. ;)
Apr 24 2012
On Monday, 23 April 2012 at 23:30:31 UTC, Ed McCardell wrote: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
Apr 25 2012