A89: Re: Question about vars in C


[Prev][Next][Index][Thread]

A89: Re: Question about vars in C




Have you initialized your static variables?
Do that. Even pointers.
With the linker that comes with tigcc you can get all kinds of strange
errors if you don't do that.
Or get mlink from http://alh.dhs.org/ti89/ and use that for linking instead
of the one that comes with tigcc.

///Olle

From: "Steven M Thompson" <fuzmeister@juno.com>
> Hello,
>
> I'm making a game in C for the 89 that uses some vars. Three
> arrays and three normal vars. The game works fine, but when I
> exit (I made it a DoorsOS program) The calc does some funny
> stuff like shows Ziplib as EXPR with a memory val of 1. Then when
> you attempt to exit DoorsOS, the calculator freezes. Ack! Could
> anyone enlighten me as to how I could fix this error.
>
> I've included the 89z prog if anyone would like to try it in Virtual TI.
>
> In much of a pickle,
> S. Thompson





References: