On Sun, Apr 02, 2000 at 09:06:30AM -0600, Herman R.willett wrote:
> Hi:
> 
> Just tried porting an app that I wrote back in 94 on SCO Zenix.  This app has
> been successfully ported to SCO Unix, and HP-UX.  It is a straight Xlib C
> application.  I copied the source to my Linux box and ran the cc on it.  Every
> Xlib function failed because the compiler claimed that it was not declared.  I
> opened the X11/XLib.h file and checked them out, all were declared (defined) as
> normal. 
> 
> [herman@vcamdev1 herman]$ cc xtest.c
> /tmp/ccZmVDzJ.o: In function 'main':
> /tmp/ccZmVDzJ.o(.text+0x19): undefined reference to 'XOpenDisplay'
> collect2: ld returned 1 exit status
> ==================================
> 
> Any explanitions
 It's a linker error, not finding the X11 library, try compiling thus:
 cc -lX11 -L/usr/X11R6/lib xtest.c .
 C.

Reply via email to