|
-
June 11th, 2011, 01:06 AM
#1
global variable not part of namespace
So the issue is ive declared a variable in one file and called it in another like so:
File1.cpp:
classobject *var1;
File2.cpp
::var1->Dofunction();
This returns:
'var1' : is not a member of '`global namespace''
I'm still a little new to this so it might just be the syntax here.
Thanks in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|