• 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
Weak link
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Weak link


  • Subject: Weak link
  • From: "Chen Wang" <email@hidden>
  • Date: Tue, 23 Oct 2007 16:45:52 -0400
  • Thread-topic: Weak link

Dear list,
 
I'm wondering how you guys work with "weak link" readily in XCode? I recently did a test in XCode 2.4.1, my Cocoa project is targeted to 10.2, therefore GetEventMonitorTarget() is not available because this API was introduced since 10.3. So, I tried weak link as suggested by Apple's document ( XCode > Framework Programming Guide > Freameworks and Weak Linking ), but I always received "Undefined symbols: _GetEventMonitorTarget" error from XCode. Did I miss something that is basic but critical? Here is my code in short:
 
 
 
extern EventTargetRef GetEventMonitorTarget( void ) __attribute__((weak_import));
...
if ( GetEventMonitorTarget != NULL )
{
    EventTargetRef refFoo = GetEventMonitorTarget( );
}
...
 
 
And [MACOSX_DEPLOYMENT_TARGET] was already set to Mac OS X 10.2 in XCode.
 
Thank you in advance for your kindly help.
 
Chen
 
 
 
Confidentiality Notice: E-mail may be intercepted between the sender and the receiver and is therefore neither secure nor confidential. Your continued use of e-mail communication confirms that you accept this risk. If this is an urgent matter, please contact me at the phone number provided. This e-mail, including any attachments, is for the sole use of the intended recipient(s) and may contain private, confidential, and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient or this information has been inappropriately forwarded to you, please contact the sender by reply e-mail and destroy all copies of the original
 _______________________________________________
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: Weak link
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Re: Problem with ld --wrap, Help
  • Next by Date: Re: Weak link
  • Previous by thread: Re: Problem with ld --wrap, Help
  • Next by thread: Re: Weak link
  • Index(es):
    • Date
    • Thread