XForms: Compiling Formdesigner code

Chris S Bullock (sabo@mindspring.com)
Thu, 28 Aug 1997 06:52:39 -0400

To subscribers of the xforms list from Chris S Bullock <sabo@mindspring.com> :

This is a multi-part message in MIME format.

--------------5F22F7BD747F6952423F8F03
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Here is my reinvention of the wheel. It is a script that will compile
any source code from the Xforms library. If it does not compile right
then there are bugs. If there are no buggs then it will compile right.
Just follow the instructions on the screen and then it will compile.

Steve Lamont wrote:
>
> To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :
>
> > 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 just discussed this problem within the last 24 hours. Check the
> archive web site shown below.
>
> 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://bragg.phys.uwm.edu/xforms
> List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/

--------------5F22F7BD747F6952423F8F03
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="compile"

#!/bin/bash
echo
echo "This shell program helps compile programs that use the xforms library."
echo "The program will ask a series of questions. Each question has to be "
echo "answered. There are no defaults. This program will compile the files"
echo "that were generated by the fdesign program(two files)."
echo
echo "What is the name of the first file?(Please specify the absolute path) >"
read first
echo
echo "What is the name of the second file?(Please specify the absolute path) >"
read second
echo
echo "What do you want to call the executable file?(Please specify the absolute path) >"
read store
echo
echo "These are the values that you put in :"
echo "First File:" $first
echo "Second file:" $second
echo "Storage of executable:" $store
echo
echo "Are the values right?(y/n)"
read choice
if [ $choice = "y" ]; then
echo
echo "The program is getting ready to compile. The compiling of the"
echo "program can take several minutes. Please be patient."
echo
else
echo
echo "You have indicated that the values that you have entered are"
echo "wrong. Please restart the program: compile are re-eneter"
echo "the values."
echo
exit 1
fi

gcc -I/usr/X11R6/include -L/usr/X11R6/lib -lX11 -lm -lforms -i $first $second -o $store

echo "The compiling of the program is done. You can find the program at"
echo $store

--------------5F22F7BD747F6952423F8F03--

_________________________________________________
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/