开发者

Using Objective-C++ static library in straight Objective-C target

I build a static library that uses Objective-C++. When it is used in a straight Objective-C target, I get

Undefined symbols:
  "___gxx_personality_v0", referenced from:

I can solve this by adding -lstdc++ to the target's "Other Linker Flags".

Question: Is there a way to specify this开发者_运维知识库 in the static library itself to make this step unnecessary? (Otherwise, I have to document it as an extra step for users of the library.)


And the answer is… no. Document the flags your library requires.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜