I have 2 source (C) files that use the same variable in both.  I put that
Variable in the header file (H) and declarced it as static because that was
the way it was declared before I split the code.

The second file that uses the variable correctly, I suspect because it is
declared static and the first C file that uses has control.

If I take the static part off, the second C file says the variable is
already defined.  If I use the word Extern, then both C files say it is
already defined

So how does 2 C files use a global vaiable.  This worked in WIndows C
before.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to