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]. Thank you in advance.
--
Tao Song (Richard)
Research Student
Colour & Imaging Institute
University of Derby
Kingsway House (East)
Kingsway, Derby, U.K.
DE22 3HL
 
Tel: ++44 (0)1332 593116
Fax: ++44 (0)1332 622218

Reply via email to