Hi, guys, I am having a simple problem: I want to compile a relatively simple gui example program. This code is off the net, and appears correct, yet I cannot get it to compile and link. The errors are: make -k GuiExample g++ GuiExample.cpp -o GuiExample /tmp/cc2fblEI.o: In function `main': GuiExample.cpp:(.text+0x1e): undefined reference to `XOpenDisplay' GuiExample.cpp:(.text+0x102): undefined reference to `XCreateSimpleWindow' GuiExample.cpp:(.text+0x11f): undefined reference to `XSelectInput' GuiExample.cpp:(.text+0x131): undefined reference to `XMapWindow' GuiExample.cpp:(.text+0x153): undefined reference to `XCreateGC' GuiExample.cpp:(.text+0x16f): undefined reference to `XSetForeground' GuiExample.cpp:(.text+0x181): undefined reference to `XNextEvent' GuiExample.cpp:(.text+0x1c4): undefined reference to `XDrawLine' GuiExample.cpp:(.text+0x1cf): undefined reference to `XFlush' collect2: ld returned 1 exit status make: *** [GuiExample] Error 1 The include appears to be correct for these routines. The routines are defined in Xlib.h, and the C preprocessor shows the header finds the library (cpp -H shows /usr/include/X11/Xlib.h being located). #include <X11/Xlib.h> I have also tried using the basic make -k with the same results (no surprise). So the question is, if the header is found and cpp works, then I suspect either link or ld as the culprits, but that would mean that the standard loader execution is messed up, because it should look in /usr/lib for the associated ".a" files that match the headers. When I look in /lib/X11, the only file there is the error message database. What happened to the X libraries? Help me Mr. Bill (or anyone else who has the answer)!!! With appologies to Gumby and his creator Art Clokey. Regards, Les H