[comp.sys.amiga] Egad! problems - help requested.

mark@unisec.usi.com (Mark Rinfret) (05/20/87)

I resurrected my copy of Egad! yesterday, hoping to use it for a MIDI
utility I've got in mind.  The first thing I did was to add the assorted
fixes that I had collected from previous net postings (changes 1-4).
Next, I rebuilt Egad! (makefile at end of article) using Aztec V3.4a.
My system is an A1000, 512k, Kickstart 33.180, Workbench 33.47.

Here's the rub - any attempt to use the image editor causes a Guru
(#0___3.0000A708).  It doesn't seem to matter which tool is being used,
but the crash always occurs upon completion of the action being performed.
For instance, using the freehand tool, the crash occurs as soon as the
mouse enters the image area (box within a box) and the first pixel is
drawn.  When using the line tool, the Guru visits as soon as the first
line segment is drawn.  A quick examination of the code doesn't reveal
anything and I haven't resorted to db yet.  I DO have a question about
the following makefile, however.  Note that the include precompilation
flags use the +L (32 bit ints) yet the CFLAGS for the rest of the modules
do not include that option.  I guess I don't understand my compiler as
well as I thought I did - what is the overall effect of this?

Egad! seems to be the only viable approach to creating the complicated
gadgetry I have in mind, so I'll continue to pursue this while waiting
for a reply.  If you've already experienced this problem, however, please
send me your fix.  Thanks.

Current Egad! makefile:

#Note: I've removed module kp.c since Aztec 3.4a now supports kprintf.
#      (MRR, 05/20/87)
#
SRC =   addgad.c dispgad.c egad.c filemenu.c gadio.c imagdcl.c \
	imagfunc.c imagimag.c imagout.c itextdcl.c itexted.c men.c \
	menstructs.c misc.c mp.c pgad.c reqn.c utilmen.c image.c
 
OBJ =   addgad.o dispgad.o egad.o filemenu.o gadio.o imagdcl.o \
	imagfunc.o imagimag.o imagout.o itextdcl.o itexted.o men.o \
	menstructs.o misc.o mp.o pgad.o reqn.o utilmen.o image.o
 
HDR =   gad.h men.h head.h
 
CFLAGS= +igt.dmp -l100 -Z6000
 
#Note that the +l option is used in the precompilation of the header
#files but not for any other modules.  Is there a conflict here?
gt.dmp: head.h
	cc +hgt.dmp -a +D +l head.h
 
#The "-lc before -lm" in the linker command line apparently prevents the
#floating point version of printf (large) from being included by the
#library but still resolves the math routine references. 
egad:   gt.dmp $(OBJ)
	ln -v -o egad +cdb -w $(OBJ) -lc -lm
 
all:    egad

#What does this do?  Who is maketd?
depend: $(SRC)
        maketd -I./include $(SRC)
 
-- 
| Mark R. Rinfret, SofTech, Inc.		mark@unisec.usi.com |
| Guest of UniSecure Systems, Inc., Newport, RI                     |
| UUCP:  {gatech|mirror|cbosgd|uiucdcs|ihnp4}!rayssd!unisec!mark    |
| work: (401)-849-4174	home: (401)-846-7639                        |