Tom Zerucha wrote:

> On Mon, May 01, 2000 at 02:25:20PM -0400, Sam Charette wrote:
> > #ifndef <identifier>
> > #define <identifier>
>
> I assume you put the declarations here :).
>
> > #endif
>

Yup =)

> In C, calling something static causes it to be LOCAL to the module.
> So each file you use will have its own copy of that variable.
>

That much I remembered, but it was the only way I could get it to compile at all.  I 
knew it was fishy but I couldn't remember the
opposite of static.  Now that you and another person told me to use extern (and 
reminded me HOW to ;) it works perfectly.

> No, local copy #2 probably has zero in, but you wrote to local copy #1.
>

That's what I thought.

>
> Try declaring them all extern.
>

I did, and it worked.  Thanks =)

Sam



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to