• 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
Re: vararg functions in frameworks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vararg functions in frameworks


  • Subject: Re: vararg functions in frameworks
  • From: Andrew Farmer <email@hidden>
  • Date: Wed, 7 Jun 2006 11:38:55 -0700

On 07 Jun 06, at 11:29, Kenny Leung wrote:
Is there a special way you have to declare vararg functions in frameworks?

No.


I have a vararg function that is declared like so:

void HXLog(int level, id obj, SEL _cmd, char *file, int line, NSString *format, ...);

When used from within the framework, it's fine, but when I try to refer to it from an application that uses the framework, it complains that the function is an undefined symbol:

/usr/bin/ld: Undefined symbols:
HXLog(int, objc_object*, objc_selector*, char*, int, NSString*, ...)
/Users/kenny/build/OBJROOT/QuickCephX.build/Debug/QuickCephX.build/ Objects-normal/i386/QCSeriesController.o reference to undefined HXLog(int, objc_object*, objc_selector*, char*, int, NSString*, ...)

Is the application you're building using C++ or Objective-C++?

If so, did you declare the framework includes as extern "C"?

Attachment: PGP.sig
Description: This is a digitally signed message part

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: vararg functions in frameworks
      • From: Kenny Leung <email@hidden>
References: 
 >vararg functions in frameworks (From: Kenny Leung <email@hidden>)

  • Prev by Date: vararg functions in frameworks
  • Next by Date: Re: Color Picker implementation error
  • Previous by thread: vararg functions in frameworks
  • Next by thread: Re: vararg functions in frameworks
  • Index(es):
    • Date
    • Thread