Re: XForms: compiling the *.c files

Steve Lamont (spl@szechuan.ucsd.edu)
Fri, 30 Jan 98 16:34:17 PST

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> I have tried to compile the *.c files after saving from 'fdesign', and
> so far have not had any luck. What would be proper format for this?
> I'm running Linux. I tried using 'gcc' and got the following return from
> xterm:
>
> xycalc.c:3: forms.h: No such file or directory
> In file included from xycalc.c:5:
> xycalc.h:1: warning: garbage at end of `#ifndef' argument
>
> Also I did not see any 'garbage' after #ifndef in the '.h' file.

To compile you can use

gcc -o myapp <your C files> -lforms -lX11 -lm

If your X and/or XForms libraries and includes live in some
non-standard place, you may have to use the -L and -I flags to tell
the compiler and loader where they are.

What's the command line you're typing? What does the xycalc.h file
look like (just the first few lines will probably do if it's large)?
Where have you installed your XForms include and library files?

Hard to say more without more complete information.

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bloch.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/