3

I had used __clang__ to make use of clang compiler for my project in my visual studio 2019 but now it gives strange error like

Error   C1189   #error:  STL1000: Unexpected compiler version, expected Clang 8.0.1 or newer. MediaServer   C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\yvals_core.h    417 

where as my clang version 9.0

C:\Users\geeker>clang --version
clang version 9.0.0 (tags/RELEASE_900/final)
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\Llvm\bin

Can anyone suggest any workarounds.

EDIT : There is a hack which actually solves the issue. That is just defining _ALLOW_COMPILER_AND_STL_VERSION_MISMATCH. But it introduces thousands of error's from MSVC.

Thank You

geeker
  • 237
  • 2
  • 13

0 Answers0