Getting Clang to work on windows

前端 未结 6 1410
鱼传尺愫
鱼传尺愫 2020-12-02 07:21

I have followed the following step by step guide and I\'ve managed, after a bit of fiddling, to get clang to compile using code:blocks and MinGW. Great, so now I could add t

6条回答
  •  暖寄归人
    2020-12-02 08:07

    Clang does have hardcoded search locations, as defined in the file clang/lib/Frontend/InitHeaderSearch.cpp, near the comment FIXME: temporary hack: hard-coded paths.

    There's a note about it on this page: http://clang.llvm.org/get_started.html

    So get the include paths from your other compiler (MingW), and hardcode them into Clang, and it might work. (I'm not sure if Clang's Windows support is 100% there yet)

提交回复
热议问题