I have a problem compiling X applications. Executing this command gives the below error.
$ gcc -I/usr/X11R6/include -o PIXMAP draw-pixmap.c -L /usr/X11R6/lib/ -lX11
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
I checked the directory /usr/X11R6/lib/ and it includes the libX11.so.6 and libX11.so.6.2 files.
So what's the problem? and what should I do??