Replies: 4 comments 10 replies
-
I would suggest adding MSVC executable to |
Beta Was this translation helpful? Give feedback.
-
Is there something preventing you from using a |
Beta Was this translation helpful? Give feedback.
-
clangd could not query the standard library header path from msvc ( maybe a bug ? ). So, you can add one line into the CMakeLists.txt of your project, like this: include_directories("C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\include") |
Beta Was this translation helpful? Give feedback.
-
可以把MSVC的include目录和lib目录放在环境变量里,虽然这样不太优雅 |
Beta Was this translation helpful? Give feedback.
-
i use xmake to build a project in vscode
xmake can generate compile_commands for clangd
but here is a problem when toolchain is msvc
when the toolchain is clang,clangd work correctly
but i dont want to use clang,
when toolchain is msvc ,there are some problems
compile_commands changes to this
clangd starts to show errors
and exchange the line 1 and line 2
iostream cannt be found
the project are able to be built and run when toolchain is msvc , can not build correctly in clang
the main difference is the first element of argument,chang->cl,and it is automatically generated by xmake
is this generating right?
if it is right,what shold i to do to make it work?
if it is worng,what kind is right?
Beta Was this translation helpful? Give feedback.
All reactions