Compile X Window Manager

Samms matesax at gmail.com
Sun May 19 12:58:00 PDT 2013


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 
`_D3std1c5linux3X114Xlib17DefaultRootWindowFPS3std1c5linux3X114Xlib7DisplayZm'
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 
`_D3std1c5linux3X114Xlib17DefaultRootWindowFPS3std1c5linux3X114Xlib7DisplayZm'
main.d:(.text+0x155): undefined reference to `XGrabButton'
main.d:(.text+0x163): undefined reference to 
`_D3std1c5linux3X114Xlib17DefaultRootWindowFPS3std1c5linux3X114Xlib7DisplayZm'
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.


More information about the D.gnu mailing list