我正在尝试在我的 conan.txt 中添加 uWebSockets 作为依赖项
conan install ..
返回以下错误:
ERROR: uwebsockets/18.3.0: Invalid configuration: uwebsockets requires a compiler that supports at least C++17
我该如何处理?
- 错误来自https://github.com/conan-io/conan-center-index/blob/master/recipes/uwebsockets/all/conanfile.py
- 我有 15.9 :
** Visual Studio 2017 Developer Command Prompt v15.9.25
- 在配方中添加 print() 表明柯南认为我有版本 15(扩展至 15.0.0)
- 传递
-s compiler.version=15.9
返回“无效”错误 - 将配方中的最低版本减少到 15 有效,但显然这是一个 hack,v15.0 不支持 C++17,所以这个要求是正确的。