undefined reference to `__dynamic_cast' using libc++ on ubuntu

前端 未结 1 1577
忘了有多久
忘了有多久 2021-01-27 09:28

I\'m trying to compile a test case that employs dynamic_cast using libc++, which was compiled according to "Build on Linux using CMake and libsupc++".

相关标签:
1条回答
  • 2021-01-27 09:53

    I would suggest using libcxxrt to replace the pretty Mac specific libc++abi (the website says only Darwin is supported). It provides a working implementation for BSD's Clang+libc++ setup, I believe it has been used with success on Linux as well.

    0 讨论(0)
提交回复
热议问题