Compile X Window Manager

Iain Buclaw ibuclaw at ubuntu.com
Sun May 19 13:04:02 PDT 2013


On 19 May 2013 20:58, Samms <matesax at gmail.com> wrote:

> Hi,
> 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:
>
> gdc ./main.d -o Refuja
> /tmp/ccysZHrg.o: In function `_Dmain':
> main.d:(.text+0x3f): undefined reference to `XOpenDisplay'
> main.d:(.text+0x75): undefined reference to `_**
> D3std1c5linux3X114Xlib17Defaul**tRootWindowFPS3std1c5linux3X11**
> 4Xlib7DisplayZm'
> main.d:(.text+0x85): undefined reference to `XStringToKeysym'
> main.d:(.text+0x9c): undefined reference to `XKeysymToKeycode'
> main.d:(.text+0xd8): undefined reference to `XGrabKey'
> main.d:(.text+0xe6): undefined reference to `_**
> D3std1c5linux3X114Xlib17Defaul**tRootWindowFPS3std1c5linux3X11**
> 4Xlib7DisplayZm'
> main.d:(.text+0x155): undefined reference to `XGrabButton'
> main.d:(.text+0x163): undefined reference to `_**
> D3std1c5linux3X114Xlib17Defaul**tRootWindowFPS3std1c5linux3X11**
> 4Xlib7DisplayZm'
> main.d:(.text+0x1d2): undefined reference to `XGrabButton'
> main.d:(.text+0x20a): undefined reference to `XNextEvent'
> main.d:(.text+0x24c): undefined reference to `XRaiseWindow'
> main.d:(.text+0x29d): undefined reference to `XGetWindowAttributes'
> main.d:(.text+0x3f2): undefined reference to `XMoveResizeWindow'
>
> collect2: ld returned 1 exit status
>
> Thank you.
>

By linking in Xlib into your program.


Regards
-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20130519/b5494ddb/attachment.html>


More information about the D.gnu mailing list