• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Basic globals/extern question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Basic globals/extern question
      • From: email@hidden
  • Prev by Date: Re: What are your top desired improvements in Xcode ?
  • Next by Date: Re: What are your top desired improvements in Xcode ?
  • Previous by thread: Re: Assertion failed: [outputs areAllObjectsKindOfClass:[XCDependencyNode class]]
  • Next by thread: Re: Basic globals/extern question
  • Index(es):
    • Date
    • Thread