Just call me stupid....
Not only did it work, but I understand what you mean now. You can ignore the rest of
my messages as I was still not quite
understanding it (tho I thought I was). Now I do, and it TRULY works (time for a
backup, methinks!)
Thanks! :)
Sam
"Richard M. Hartman" wrote:
> your problem is that you havce more than one .c (or .cpp) file
> including your .h files. each will be declaring them. if they
> are declared static, then each will have their own copies.
>
> you must pick a file in which to declare your globals -- one
> and one only.
>
> try this:
>
> xyzzy.h:
>
> extern int global;
>
> xyzzy.c:
>
> #include "xyzzy.h"
>
> // declare globals for module "xyzzy"
> int global=3;
>
> plugh.c:
>
> #include xyzzy.h
>
> // we can use "global" here...
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/