<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 19 May 2013 20:58, Samms <span dir="ltr"><<a href="mailto:matesax@gmail.com" target="_blank">matesax@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
I found X.d and Xlib.d replacement for X11 library of C language. But it returned many errors when compiling. Some problems was in non-static declaration, but how can I resolve this problems:<br>
<br>
gdc ./main.d -o Refuja<br>
/tmp/ccysZHrg.o: In function `_Dmain':<br>
main.d:(.text+0x3f): undefined reference to `XOpenDisplay'<br>
main.d:(.text+0x75): undefined reference to `_<u></u>D3std1c5linux3X114Xlib17Defaul<u></u>tRootWindowFPS3std1c5linux3X11<u></u>4Xlib7DisplayZm'<br>
main.d:(.text+0x85): undefined reference to `XStringToKeysym'<br>
main.d:(.text+0x9c): undefined reference to `XKeysymToKeycode'<br>
main.d:(.text+0xd8): undefined reference to `XGrabKey'<br>
main.d:(.text+0xe6): undefined reference to `_<u></u>D3std1c5linux3X114Xlib17Defaul<u></u>tRootWindowFPS3std1c5linux3X11<u></u>4Xlib7DisplayZm'<br>
main.d:(.text+0x155): undefined reference to `XGrabButton'<br>
main.d:(.text+0x163): undefined reference to `_<u></u>D3std1c5linux3X114Xlib17Defaul<u></u>tRootWindowFPS3std1c5linux3X11<u></u>4Xlib7DisplayZm'<br>
main.d:(.text+0x1d2): undefined reference to `XGrabButton'<br>
main.d:(.text+0x20a): undefined reference to `XNextEvent'<br>
main.d:(.text+0x24c): undefined reference to `XRaiseWindow'<br>
main.d:(.text+0x29d): undefined reference to `XGetWindowAttributes'<br>
main.d:(.text+0x3f2): undefined reference to `XMoveResizeWindow'<br>
<br>
collect2: ld returned 1 exit status<br>
<br>
Thank you.<br>
</blockquote></div><br></div><div class="gmail_extra">By linking in Xlib into your program.<br><br><br clear="all"></div><div class="gmail_extra">Regards<br></div><div class="gmail_extra">-- <br>Iain Buclaw<br><br>*(p < e ? p++ : p) = (c & 0x0f) + '0';
</div></div>