XForms: Compiling Formdesigner code

Scott Barron (sbarron@centraltx.net)
Wed, 27 Aug 1997 21:37:56 -0500

To subscribers of the xforms list from Scott Barron <sbarron@centraltx.net> :

Hello,

I just recently got the XForms libraries and have began learning to
write gui programs in them. I am using Form Designer and no matter how
simple the form i am making i get the following errors when i try to
compile it:

/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x5a): undefined reference to `main'

I cannot seem to figure it out and am reading the XForms online manual.
All the demos included with XForms compiled fine but my apps wont.
The command line for gcc is as follows:

gcc -I ~/xforms/FORMS -L ~/xforms/FORMS file.c -o filename -lforms -lX11
-lm

this same line worked for demos that i compiled.

Thanks to anyone that can get me going in the right direction.
_________________________________________________
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://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/