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

vararg functions in frameworks


  • Subject: vararg functions in frameworks
  • From: Kenny Leung <email@hidden>
  • Date: Wed, 7 Jun 2006 11:29:50 -0700

Hi All.

Is there a special way you have to declare vararg functions in frameworks?

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*, ...)


I am positive that I have included the framework into my application. In fact, I have to call another, non-vararg function to set up the logging, and that works.
Does anyone have any insight into this?


Thanks!

-Kenny

_______________________________________________
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: Andrew Farmer <email@hidden>
  • Prev by Date: Re: Catching global keystrokes from cocoa
  • Next by Date: Re: vararg functions in frameworks
  • Previous by thread: NSAddImage() error on 10.2.8
  • Next by thread: Re: vararg functions in frameworks
  • Index(es):
    • Date
    • Thread