Path: utzoo!attcan!uunet!wuarchive!mailrus!iuvax!cica!tut.cis.ohio-state.edu!ucbvax!ECNCDC.BITNET!MMPR004
From: MMPR004@ECNCDC.BITNET (Scott Hutinger)
Newsgroups: comp.sys.apple
Subject: MPW IIGS C no worky
Message-ID: <8909260045.aa26614@ADM.BRL.MIL>
Date: 26 Sep 89 04:44:00 GMT
Organization: The Internet
Lines: 32

Ah,

Will this week continue?  I seem to have problems all the time!!

This time its MPW IIGS C 1.1B1.  The problem is that I can write a small
program in APW, and get a nice 32k file which works just fine.  I compile
and link the same program under MPW IIGS C, and the file is Much smaller,
but has some internal stack problems.  It looses the stack after a call
to NoteOn.  Actually after the return from the C function after NoteOn, as
a call to another function after NoteOn works fine, but bombs at the return
from the function which has NoteOn in it.

Since the MPW IIGS version is so much smaller, I think I have a major problem.
>mct  mct.make
>		"{CIIGSLibraries}"Start.obj
>		mct.c.obj
>	LinkIIGS
>		"{CIIGSLibraries}"Start.obj
>		mct.c.obj
>		-lib "{CIIGSLibraries}"CLib
>		-o mct
>	DuplicateIIGS -mac mct :
>mct.c.obj  mct.make mct.c
>	CIIGS mct.c
I also tried DirectIIGS and linked it in, but get the same problem.  A smaller
file that bombs.

Could I possibly be missing something with the MPW IIGS linker?  I also tried
two segments, with main static, and the other dynamic, used DirectIIGS, but
always get a smaller file that bombs out; except when compiled with APW.

Scott Hutinger    mmpr004@ecncdc.bitnet