Page 1 of 1

PostPosted: Fri Aug 06, 2004 1:18 am
by minorw
I define a global variable before main() function. I use the variable in a function written in the project file. This works.
However I cannot use the variable if it is in a function that is written in an #include file.
Suggestions welcome.

PostPosted: Fri Aug 06, 2004 8:53 am
by SamWillis
Im not sure but I think you have to define Globals in both the Main Source Code and the Include. I might be wrong...

PostPosted: Sun Aug 08, 2004 2:37 am
by minorw
You are correct ... Thanks:)

PostPosted: Fri Aug 13, 2004 7:59 pm
by Atomo64
it's not necessary, only declare the variable before the include the best site