vararg functions in frameworks
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