Where does the __1 symbol come from when using LLVM's libc++?

后端 未结 1 1647
春和景丽
春和景丽 2020-12-05 20:18

I see a fair amount of questions like Apple Mach-O Linker (Id) Error and Undefined symbols in cryptopp at IOS 64-bit project. The problem is usually described as:

         


        
相关标签:
1条回答
  • 2020-12-05 20:47

    It is from C++11 inlined namespaces

    libc++ has something like

    namespace std {
        inline namespace __1 {
            ....
    

    more at What are inline namespaces for?

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