Basic globals/extern question
Basic globals/extern question
- Subject: Basic globals/extern question
- From: Ken Tozier <email@hidden>
- Date: Fri, 16 Feb 2007 21:57:36 -0500
Hi
I've managed to go 12 years without ever needing globals but find
that I need them for my current project (globally visible function
pointers to a plugin) and am getting "reference to undefined
_gPluginInterfaces" when I try to build.
I put all the globals in their own ".c" file and declare "extern
PluginInterfaces *gPluginInterfaces;" at the top of all files that
need to call the plugin functions but this doesn't seem to be cutting
it.
Here's some of the error details I'm seeing
/<path>/PageUtils.o reference to undefined _gPluginInterfaces
/<path>/DocumentUtils.o reference to undefined _gPluginInterfaces
etc...
How do I reference these globals if not with "extern?"
Thanks
Ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden