• 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: Newbiesque question...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Newbiesque question... (From: "R. Eranki" <email@hidden>)

  • Prev by Date: Re: Newbiesque question...
  • Next by Date: Animated GIFs and NSImage ??
  • Previous by thread: Newbiesque question...
  • Next by thread: Re: Newbiesque question...
  • Index(es):
    • Date
    • Thread