tl;dr;
The linker C:\UnrealToolchains\v16_clang-9.0.1-centos7\x86_64-unknown-linux-gnu\bin\ld.lld.exe
can’t read C:\UnrealToolchains\v16_clang-9.0.1-centos7\x86_64-unknown-linux-gnu\lib64\libstdc++.a
because the latter contains a compressed section but zlib is not available.
Does anyone know how to give ld.lld.exe access to zlib on Windows?
Details:
I’m trying to cross-compile a custom Unreal project with plug-ins to Linux.
I’m compiling and linking against clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04 in order to get libc++.a and libc++abi.a which are required by the plug-in.
I’m hitting an issue where libc++abi.a requires “atexit” (undefined symbol __cxa_thread_atexit_impl).
Adding libstdc++.a results in a linker error:
“ld.lld: error: C:\UnrealToolchains\v16_clang-9.0.1-centos7\x86_64-unknown-linux-gnu\lib64\libstdc++.a(locale_init.o): contains a compressed section, but zlib is not available”