clang “hello, world!” link errors in windows

前端 未结 5 2159
借酒劲吻你
借酒劲吻你 2021-02-14 03:40

I just downloaded the CLang sources, made a Visual C++ 10 IDE workspace by using CMake, and built everything from Visual C++ 10.0 (express).

Now I get a bunch of linker

5条回答
  •  猫巷女王i
    2021-02-14 04:21

    If you want to experiment with Clang on Windows, I suggest using a MinGW built version, like the one I provide here (or build it yourself using your favourite MinGW toolchain):

    • 32-bit

    • 64-bit

    You will need both the gcc and clang packages (those without linux/mac/cygwin suffixes) and extract them to the same directory. Clang uses gcc to link, and can link to GCC's libstdc++, pretty much giving you access to the C++ standard library. Exceptions work for the 32-bit version. I haven't had any luck with debug info though.

    Work is being done to bring better MS support to Clang, but it's a slowly progressing task.

提交回复
热议问题