Re: Darwin-kernel Digest, Vol 15, Issue 13
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com 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, darwin-kernel-request@lists.apple.com wrote:
Send Darwin-kernel mailing list submissions to darwin-kernel@lists.apple.com
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 darwin-kernel-request@lists.apple.com
You can reach the person managing the list at darwin-kernel-owner@lists.apple.com
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 <prokash@garlic.com> To: darwin-kernel@lists.apple.com Subject: Linking c++ lib from c app Message-ID: <03C82FE2-FD04-4997-9082-E21C4B7D31DF@garlic.com> 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 Darwin-kernel@lists.apple.com 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Prokash Sinha