__next_prime symbol undefined

前端 未结 1 431
醉酒成梦
醉酒成梦 2021-01-18 22:53

I am including unordered_map in a XCode project for iOS. Originally when I tried linking I got errors for new and delete operations, but when I added \"-lstdc++\" to \"Other

1条回答
  •  生来不讨喜
    2021-01-18 23:55

    This function is a private method in LLVM's libc++: http://www.opensource.apple.com/source/libcpp/libcpp-31/src/hash.cpp?txt. Therefore, you need to change your C++ Standard Library to libc++ (LLVM C++ standard library with C++11 support), or change your linker flag to -lc++.

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