Re: deimos libX11 undefined reference

2012-07-15 Thread Ed McCardell
On 07/11/2012 07:50 PM, cal wrote: On Wednesday, 11 July 2012 at 23:18:25 UTC, cal wrote: I'm using the deimos libX11 bindings, DMD 2.058 OpenSUSE x86_64. In Xlibint.d, my linker can't resolve '_XData16' (it's proto is on line 624 of Xlibint). Does anyone who knows X11 know what library I

Re: deimos libX11 undefined reference

2012-07-14 Thread Minas Mina
Try -L-lX11

Re: deimos libX11 undefined reference

2012-07-14 Thread cal
On Saturday, 14 July 2012 at 12:55:21 UTC, Minas Mina wrote: Try -L-lX11 Yeah I was already linking X11. The problem was the binding, it defined a function that was never defined in the original c header, so it would not be able to find the function anywhere. Commenting the defs out in the

Re: deimos libX11 undefined reference

2012-07-12 Thread Jacob Carlborg
On 2012-07-12 01:50, cal wrote: Hmm, looking at the .c header, the function is not even defined. I think it is not used, and in this case turning macros into functions in the binding generates linker errors. I don't know the best way to fix this in the binding (I have simply commented out the

Re: deimos libX11 undefined reference

2012-07-12 Thread mta`chrono
Am 12.07.2012 08:17, schrieb Jacob Carlborg: On 2012-07-12 01:50, cal wrote: Hmm, looking at the .c header, the function is not even defined. I think it is not used, and in this case turning macros into functions in the binding generates linker errors. I don't know the best way to fix this

Re: deimos libX11 undefined reference

2012-07-12 Thread cal
On Thursday, 12 July 2012 at 16:43:28 UTC, mta`chrono wrote: Am 12.07.2012 08:17, schrieb Jacob Carlborg: On 2012-07-12 01:50, cal wrote: Hmm, looking at the .c header, the function is not even defined. I think it is not used, and in this case turning macros into functions in the binding

Re: deimos libX11 undefined reference

2012-07-11 Thread cal
On Wednesday, 11 July 2012 at 23:18:25 UTC, cal wrote: I'm using the deimos libX11 bindings, DMD 2.058 OpenSUSE x86_64. In Xlibint.d, my linker can't resolve '_XData16' (it's proto is on line 624 of Xlibint). Does anyone who knows X11 know what library I should be linking to for that