Re-write bits to use less globals. As a rule globals are bad. You can create
"psuedo global" data by allocating memory and passing pointers around. A
method I used once was - create a structure type containing all my globals.
Dynamically allocate some memory for it and cast to struct type. Then use
one global pointer to point to my structure.
Rik
> -----Original Message-----
> From: Andrew Howlett [SMTP:[EMAIL PROTECTED]]
> Sent: 12 February 2001 13:44
> To: Palm Developer Forum
> Subject: Exceeding the globals limit
>
>
> The code I'm porting uses lots of globals. I'm getting link errors which
> probably mean that I've exceeded the maximum allowed globals size
> (64k?). So here's the question:
>
> How do you defeat/avoid the maximum globals limit?
>
> Thanks,
> Andrew.
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/