How do I Expose functions in static library through a dylib without having to create a "wrapper" extern C fuction in a implementation file ?
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