0

We have a project, that has lots of dependencies - third party libraries. We get the source code and build them ourselves. Currently we are using MSVC compiler, but looking into transitioning to using clang-cl (so the one installed through Visual Studio installer). We use CMake to generate build files.

I tried rebuilding just the project with clang-cl, but got linking errors (did not find functions of third party libraries). So I imagine ABIs are not compatible. Do I need to rebuild all the libs with clang-cl, Or is there another way? I tried the solution to call vcvarsall.bat like explained on https://clang.llvm.org/docs/UsersManual.html#clang-cl, but got the same linking errors.

What I am basically looking is your experience regarding changing compiler used to build a project.

user3007875
  • 123
  • 7
  • Yes, [name mangling](https://www.geeksforgeeks.org/extern-c-in-c/) is a compiler implementation detail. Not the only problem, having multiple copies of the standard C and C++ libraries in a single process can be quite troublesome. – Hans Passant Jan 14 '23 at 23:15

0 Answers0