Re: Darwin-kernel Digest, Vol 15, Issue 13
Re: Darwin-kernel Digest, Vol 15, Issue 13
- Subject: Re: Darwin-kernel Digest, Vol 15, Issue 13
- From: Prokash Sinha <email@hidden>
- Date: Fri, 27 Apr 2018 15:33:12 -0700
BTW,
If I create a dylib for the C++, and linked with the app, I can use it fine.
Also, I know that earlier static lib linking was not supported, so may be this
is still the case !
Thanks,
-Prokash
> On Apr 27, 2018, at 12:00 PM, email@hidden wrote:
>
> Send Darwin-kernel mailing list submissions to
> email@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.apple.com/mailman/listinfo/darwin-kernel
> or, via email, send a message with subject or body 'help' to
> email@hidden
>
> You can reach the person managing the list at
> email@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Darwin-kernel digest..."
>
>
> Today's Topics:
>
> 1. Linking c++ lib from c app (Prokash Sinha)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 27 Apr 2018 08:44:12 -0700
> From: Prokash Sinha <email@hidden>
> To: email@hidden
> Subject: Linking c++ lib from c app
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=utf-8
>
> Using Xcode 8.2.1, I’m trying to link a c++ lib to a c project. The lib is
> c++ static library.
>
> I used extern “C” to avoid name mangling.
>
> And gcc visibility attribute is not needed, right? It’s only for dylib !!!
>
> So is it possible to link a C++ lib ( just using plain c++ lib project, not
> the STL c++ lib project ) to a c app. ???
>
> Thanks,Prokash
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> Darwin-kernel mailing list
> email@hidden
> https://lists.apple.com/mailman/listinfo/darwin-kernel
>
>
> ------------------------------
>
> End of Darwin-kernel Digest, Vol 15, Issue 13
> *********************************************
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden