Missing a lot of std C++ symbols like: ld.lld: undefined symbol: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>::rfind(char const*, unsigned long, unsigned long) const
in build.zig I am linking the zig’s libc++ with linkLibCpp. I assume that zig’s bundled C++ standad library is different than the pre-built one, is there any suggestions what should I try in this case?
I’ve noticed issues with this depending on the platform/abi/etc, particularly on some Windows targets. What target are you trying to build and/or do you have code you can share?
For someone in the future ever encounters something like this, it’s probably happening because the pre-built static library requires libstdc++, zig would be usually configured to link libc++ not libstdc++, not sure how to tell zig to link with libstdc++ probably you can’t without recompiling zig?
basically this will just search the system library paths for libstdc++, not sure how cross-compatible(for unix-like platforms) this solution is, but something if you really need also addObjectFile can be your friend.