std::char_traits<unsigned char> compilation error

I want to make a binding for zig for a C++ library, in addition to this library was developed more with a bias to msvc compiler, using their specification, I managed to build a seemingly static library through clang20 with minor edits, but alas for zig I was able to do so, I understand correctly that still zig has not quite clang? I’m stuck on the point that I have a lot of errors because of (std::char_traits)

C:\Users\\\User\\AppData\\Roaming\\\Code\User\\\globalStorage\\\zig\\zig\\windows-x86_64-0.15.0-dev.151 +6e8493daa\\\lib\libcxx\include/string:2505:3: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
 traits_type::assign(__p[__old_sz], value_type());
 ^

I understand I need libstdcc, I seem to have specified it via lib.linkSystemLibrary(“stdc++”) but the situation hasn’t changed much. Please tell me what I am doing wrong, here is my build.zig

Hi @GeTechG, welcome to Ziggit.

I think you are looking for mod.linkLibCpp(). This should handle the system libraries as well as other things that may need to be filled in. You may need to do both linkLibCpp and add the system library if it is referenced in the files that you are compiling. I would also say to link either libc or libcpp, not both.

Yeah, I already tried that didn’t really change anything, still the same problems.