Linking c++ lib from c app
Linking c++ lib from c app
- Subject: Linking c++ lib from c app
- From: Prokash Sinha <email@hidden>
- Date: Fri, 27 Apr 2018 08:44:12 -0700
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
_______________________________________________
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