View Single Post
Old Feb 20th, 2005, 3:34 PM   #1
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
global variables [solved]

OK usually I don't use global variables, but this time I have to. Why is it that when declaring global variables in a file, they are not accessible in a different source file?

EDIT: NVM I found the answer somewhere else. I have to use "extern" in the other modules.

Last edited by uman; Feb 20th, 2005 at 4:06 PM. Reason: found answer
uman is offline   Reply With Quote