justmao945 / vim-clang

Clang completion plugin for vim
ISC License
357 stars 47 forks source link

Using mingw headers on windows #135

Closed vojtechj closed 4 years ago

vojtechj commented 4 years ago

Hi, can you please help me, how should I setup vim-clang on windows?

I am using mingw for compiling and if I set: g:clang_include_sysheaders_from_gcc to true, then clang is called with target x86_64-pc-linux-gnu and not target x86_64-pc-windows-gnu.

Thank you

vojtechj commented 4 years ago

I fixed it with: let g:clang_cpp_options = '-target x86_64-pc-windows-gnu'