Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build clangbuilder #46

Closed
misaka00251 opened this issue May 14, 2020 · 4 comments
Closed

Can't build clangbuilder #46

misaka00251 opened this issue May 14, 2020 · 4 comments

Comments

@misaka00251
Copy link

main.cc
[ 68%] Building CXX object ui/CMakeFiles/ClangbuilderUI.dir/appexec.cc.obj
appexec.cc
[ 71%] Building CXX object ui/CMakeFiles/ClangbuilderUI.dir/appui.cc.obj
appui.cc
[ 73%] Building CXX object ui/CMakeFiles/ClangbuilderUI.dir/settings.cc.obj
settings.cc
D:\Build\clangbuilder\sources\.\include\json.hpp(20665): error C2416: 不能在此上下文中应用属性 "deprecated("Since 3.0.0")"
D:\Build\clangbuilder\sources\.\include\json.hpp(22608): note: 参见对正在编译的 类 模板 实例化 "nlohmann::basic_json<ObjectType,ArrayType,StringType,BooleanType,NumberIntegerType,NumberUnsignedType,NumberFloatType,AllocatorType,JSONSerializer>" 的引用
D:\Build\clangbuilder\sources\.\include\json.hpp(20913): error C2416: 不能在此上下文中应用属性 "deprecated("Since 3.0.0")"
NMAKE : fatal error U1077: “C:\PROGRA~2\MICROS~1\2017\BUILDT~1\VC\Tools\MSVC\1416~1.270\bin\Hostx64\x64\cl.exe”: 返回代
码“0x2”
Stop.
NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\nmake.exe"”: 返回代 码“0x2”
Stop.
NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\nmake.exe"”: 返回代 码“0x2”
Stop.
devi: Use upgrade --default, will install devi.json#core.
@fcharlie
Copy link
Contributor

fcharlie commented May 14, 2020

由于使用了完整的 C++17 特性,因此建议安装 Visual Studio 2019

@misaka00251
Copy link
Author

misaka00251 commented May 14, 2020 via email

@fcharlie
Copy link
Contributor

这应该是 vswhere 的排序问题,我已经更新了代码,默认情况使用最新的 >16.2 的 Visual Studio。

@misaka00251
Copy link
Author

Solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants