• 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
How do I Expose functions in static library through a dylib without having to create a "wrapper" extern C fuction in a implementation file ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I Expose functions in static library through a dylib without having to create a "wrapper" extern C fuction in a implementation file ?


  • Subject: How do I Expose functions in static library through a dylib without having to create a "wrapper" extern C fuction in a implementation file ?
  • From: Daniel Stenning <email@hidden>
  • Date: Wed, 05 Dec 2007 02:32:35 +0000
  • Thread-topic: How do I Expose functions in static library through a dylib without having to create a "wrapper" extern C fuction in a implementation file ?

I am building a dylib that uses some static libraries.

Say I have a function libFoo()  in a static library, and the accompanying C
header for it.

 Is there a way to expose this function directly to the outside world via
my dylib without having to write a "wrapper" such as:

#ifdef __cplusplus
extern "C"
{
#endif

Int DylibFoo {
  return  libFoo();
}

#ifdef __cplusplus
}
#endif


It seems wasteful to have to create an extra function layer just to expose
the funcition inside the static library.


Cheers,
Dan




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Weak Linking Frameworks in Xcode 3.0
  • Next by Date: Re: Plist not being updated
  • Previous by thread: Re: A novice question
  • Next by thread: QuickLook generator build on 10.4.10 failure.
  • Index(es):
    • Date
    • Thread