Re: Newbiesque question...
Re: Newbiesque question...
- Subject: Re: Newbiesque question...
- From: Raphael Sebbe <email@hidden>
- Date: Thu, 26 Jul 2001 21:01:16 +0200
in the header file :
#ifdef __cplusplus
extern "C" {
#endif
void myFunc(void);
#ifdef __cplusplus
}
#endif
so that it gets exported as a C function.
Raphael
On Thursday, July 26, 2001, at 08:31 PM, R. Eranki wrote:
Hmm... How can I call a C++ function declared in a different file from
an
Objective-C file?
It doesn't seem to work... I just get "undefined symbol" errors. But
when I
change the extension to .c, it links fine.
Any suggestions on what I can do?
--
"Against stupidity, the gods themselves contend in vain." (Schiller)
R. Eranki
email@hidden
parallax | macnn
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev