question

guiyangfan-9436 avatar image
1 Vote"
guiyangfan-9436 asked BobJohnson-6874 edited

STL1000: Unexpected compiler version, expected Clang 11.0.0 or newer.

Upgraded to visual studio 2019 recently.

  1. I am using my own llvm/clang version for a project, as it requires a specific version of these, not newer nor older.

  2. On visual studio 2017, I am able to use them fine, llvm and clang 7.0, but with a different build platform, i used to have cmake -DCMAKE_GENERATOR_PLATFORM=x64,

  3. now after switching to 2019, that somehow is not working, so I am using cmake -T ClangCL. I have installed the c++ clang-cl for v142 build tools(x64/x86).

  4. I have also specified my llvm/clang path in the PATH of my env variable, and cmake is able to find everything... nothing strange to me.

However, when I start to compile the project, it feels like visual studio 2019 wants to use clang 11.0 since it keeps erroring me about it and many other errors come with this one. I tried to change the llvm version in advanced option to 10.0.0, but it does not work. I have also created Directory.build.props that points directly to the clang/llvm I want to use, that helps to get the cmake working, since it wasn't finding the compiler originally.

I searched many places online, nothing I could find that is similar to what i have.. Could someone help with this?

Thanks!



not-supported
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers