Using Objective-C ++ Static Library in Direct Objective-C Target

I am creating a static library that uses Objective-C ++. When it is used in direct Objective-C purpose, I get

Undefined symbols:
  "___gxx_personality_v0", referenced from:

I can solve this by adding -lstdC ++ to the "Other linker flags" target.

Question: Is there a way to specify this in the static library itself to make this step unnecessary? (Otherwise, I should document it as an additional step for library users.)

+3
source share
1 answer

And the answer is ... no. Document the flags your library needs.

+4
source

Source: https://habr.com/ru/post/1768486/


All Articles