Re: XForms: Simple Question?

Steve Lamont (
Wed, 27 Aug 97 07:12:34 PDT

To subscribers of the xforms list from (Steve Lamont) :

> Hello, I'm new to Xforms and I have some simple questions. Should I be
> able to compile the xxx.c code on it's own? Tried that and it doesn't
> work. ...

It should compile to an object file (xxx.o) separately but it won't
create a valid executable. It does not supply a main() function. To
get a main(), select the Emit Main option in the fdesign menu and then
save. You will then have three C source files:


You should be able to compile and link the xxx_main.c and xxx.c files
in the standard manner. For instance

gcc -c xxx_main.c
gcc -c xxx.c
gcc -o xxx xxx_main.o xxx.o -lforms -lX11 -lm

should work if things are in the Standard Places.


To unsubscribe, send the message "unsubscribe" to or see
Xforms Home Page:
List Archive: