وقتی میخوام با دستور make کامپایلش کنم این خطا رو میده.میگه کد ها اشتباه هسستند.
cc -Os -pedantic -Wall -I/usr/X11R6/include -L/usr/X11R6/lib -lX11 -o tinywm tinywm.c
tinywm.c: In function ‘main’:
tinywm.c:49:51: warning: ‘start.button’ may be used uninitialized in this function [-Wmaybe-uninitialized]
attr.x + (start.button==1 ? xdiff : 0),
^
tinywm.c:47:19: warning: ‘start.y_root’ may be used uninitialized in this function [-Wmaybe-uninitialized]
ydiff = ev.xbutton.y_root - start.y_root;
^
tinywm.c:46:19: warning: ‘start.x_root’ may be used uninitialized in this function [-Wmaybe-uninitialized]
xdiff = ev.xbutton.x_root - start.x_root;
^
/tmp/ccq3dOxl.o: In function `main':
tinywm.c:(.text.startup+0x25): undefined reference to `XOpenDisplay'
tinywm.c:(.text.startup+0x65): undefined reference to `XStringToKeysym'
tinywm.c:(.text.startup+0x6e): undefined reference to `XKeysymToKeycode'
tinywm.c:(.text.startup+0x84): undefined reference to `XGrabKey'
tinywm.c:(.text.startup+0x9e): undefined reference to `XGrabButton'
tinywm.c:(.text.startup+0xb8): undefined reference to `XGrabButton'
tinywm.c:(.text.startup+0xc7): undefined reference to `XNextEvent'
tinywm.c:(.text.startup+0xe2): undefined reference to `XRaiseWindow'
tinywm.c:(.text.startup+0x108): undefined reference to `XGrabPointer'
tinywm.c:(.text.startup+0x11b): undefined reference to `XGetWindowAttributes'
tinywm.c:(.text.startup+0x14b): undefined reference to `XCheckTypedEvent'
tinywm.c:(.text.startup+0x1e6): undefined reference to `XMoveResizeWindow'
tinywm.c:(.text.startup+0x201): undefined reference to `XUngrabPointer'
collect2: error: ld returned 1 exit status
make: *** [all] Error 1
برای دانلود هم به اینجا ها سری بزنید:
http://incise.org/tinywm.htmlhttp://freecode.com/projects/tinywm/