On Wed, 26 Jun 2002, Tao Song wrote: > Hi, dear all, > I have just installed XFree86 4.2.0 in order to work at home. I tried to > complie a Xlib program (which can be complied perfectly on HP-UNIX) > using the following command: > gcc -lX11 XSampleWindow.c > gcc complainted like this: /usr/lib/libdl.a undefined reference 'atexit' > > After that, I try to complie it using: gcc -lX11 -static XSampleWindow.c > gcc complainted that all the X functions (e.g. XDrawLine, > XOpenDisplay....) are undefined. > > I have linked the /usr/X11R6/lib/libX11.* to /usr/lib (I also tried > copying instead of linking). > Could any one tell me why is that? How to solve it? > Please reply me to this address: [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> . Thank you in advance.
gcc XSampleWindow.c -lX11 if /usr/X11R6/lib/ isn't in your LD_LIBRARY_PATH you need to... gcc XSampleWindow.c -L/usr/X11R6/lib -lX11 Mark. _______________________________________________ Xpert mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xpert