#cc/link Xwindow pgms
Is this the proper place to discuss Unix programming???
Presuming that it is … I am attempting to compile and link
some very simple X window programs. I downloaded the
X window development SW into the /usr/src/X … just as the
installation guide instructed me to do.
However, when trying to include <X11/Xlib.h>, cc cant find it.
Also, problems with linking.
I am now explicitly telling it the directories to search:
cc <pgm> – I /usr/src/X/usr/X/include -L /usr/src/X/usr/X/lib \
-lX11
and that seems to almost work. I get link errors stating that
it cant find "getnetpath", "netdir_getbyname", etc.
There must be an esier way. Any help would be appreciated.
Anything I may have blundered in the installation?? This
directory specification seems very messy.
-Jay Pedersen