![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 4
![]() |
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 |
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Glad to hear you found the answer.
|
|
|
|
|
|
#3 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 4
![]() |
Thanks
![]() |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|