• 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: How to call functions of a C dylib on a C++ dylib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to call functions of a C dylib on a C++ dylib


  • Subject: Re: How to call functions of a C dylib on a C++ dylib
  • From: "Kiel Gillard" <email@hidden>
  • Date: Fri, 19 Sep 2008 00:53:25 +1000

Howdy,

I think the following syntax is the right idea:

extern "C" {     extern void MyFunction(void *args);
}

However, because it is insanely late, I may be wrong. If you have a look at
the headers for Apple's frameworks (eg: one of the Core Foundation headers)
you'll see how you should do it.

Hope this helps,

Kiel
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to call functions of a C dylib on a C++ dylib
      • From: Stefan Werner <email@hidden>
  • Prev by Date: Re: Binding to an NSArrayController however binding is 1-way only.
  • Next by Date: Re: Core Data in a framework ?
  • Previous by thread: Re: How to call functions of a C dylib on a C++ dylib
  • Next by thread: Re: How to call functions of a C dylib on a C++ dylib
  • Index(es):
    • Date
    • Thread