Compile X Window Manager
evilrat
evilrat666 at gmail.com
Mon May 20 17:43:39 PDT 2013
On Monday, 20 May 2013 at 16:28:09 UTC, Samms wrote:
> It resolved only small part of errors:
>
> gdc ./main.d /usr/include/d2/4.6/std/c/linux/X11/Xlib.d -o
> Refuja -L-L/usr/include/X11/ -L-lXlib
> /tmp/ccFcEKHG.o: In function `_Dmain':
> main.d:(.text+0x3f): undefined reference to `XOpenDisplay'
> 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+0x155): undefined reference to `XGrabButton'
> 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
as Iain said above now you need to link x11 also
More information about the D.gnu
mailing list