1

In MAC there are two different kinds of C++ standard libraries: libstdc++ and libc++, and mixing them can have link errors as this post shows. So before I decide to use C++ standard library, I will first check the C++ standard library employed by the external library I will use. If the external library is dynamic library, I can use otool -L to check the standard library that it has invoked. Then my question is: what if the library is static library? Can I analyze the object file to get some ideas of its employed standard library?

Community
  • 1
  • 1
feelfree
  • 11,175
  • 20
  • 96
  • 167

0 Answers0