xforms-development
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XForms] missing X11 library?


From: jon
Subject: Re: [XForms] missing X11 library?
Date: Wed, 18 Nov 2015 03:20:12 +0000

On Tue, 2015-11-17 at 17:58 -0800, Peter Rowat wrote:
> I have what must be a trivial problem compiling a simple program:
> 
> 
> I’ve written and compiled a few XForms programs successfully, and now
> I’m using some X library calls as used, e.g., in the triangle routine
> in “freedraw.c” demo. 
> However it seems I’m missing a library since I get the following
> errors:
> This command compiles my programs without the X library calls:
> 
> 
> gcc -g  -I/opt/X11/include -o trime
> -I/Users/prowat/XFormsCode/xforms-1.2.4/lib -L/opt/X11/lib
> -L/usr/local/lib -lforms trime.c
> 
> 
> 
> Undefined symbols for architecture x86_64:
>   "_XDrawLines", referenced from:
>       _draw_triangle in trime-f577d6.o
>   "_XFillPolygon", referenced from:
>       _draw_triangle in trime-f577d6.o
>   "_XSetForeground", referenced from:
>       _draw_triangle in trime-f577d6.o
> 
> 
> 
> 
> Thanks for any help. I’m on OS X 10.11
> 
> 

Last time I compiled on Macos X I used this:

gcc -Wall -I/usr/local/include -I/opt/X11/include -L/usr/local/lib
myfiles.c -l forms -o mybin

Try variations on this theme and see if that helps,
Jon






reply via email to

[Prev in Thread] Current Thread [Next in Thread]