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