Mixing stdc++ and libc++ in an iOS project

前端 未结 2 1702
醉梦人生
醉梦人生 2021-01-20 03:24

I am having a difficult time configuring an iOS project which uses a static library linked against the old libstdc++ that gcc used. That library is 32 and 64-bit.

Th

2条回答
  •  北恋
    北恋 (楼主)
    2021-01-20 03:52

    As long as you don't mix objects (like passing a string from one library into a function that expects a different kind of string), you can do it by including both libraries when you build the top-level app.

    In my case, it worked by setting the standard C++ lib to the GNU version and then adding libc++ as I would any other system library.

提交回复
热议问题