在windows10下面,用vs2015编译YouCompleteMe

在windows10下面,用vs2015编译YouCompleteMe

须要安装:

  1. VS2015
  2. Python2.7.x(x86)
  3. CMake
  4. Vundle
  5. Vim7.4
  6. LLVM

操做步骤:

  1. 在vimrc中配置Vundle,并加入c++

    1 Bundle 'Valloric/YouCompleteMe'

     

  2. 在YouCompleteMe目录下,新建ycmd_build目录,切换到该目录。执行:vim

    1 cmake -G "Visual Studio 14" -DPATHTOLLVMROOT="C:\My\Path\To\LLVM" . ..\thirdparty\ycmd\cpp

     

  3. 打开VS2015命令行工具。执行:windows

    1 msbuild /t:ycmcore;ycmclient_support /property:configuration=Release YouCompleteMe.sln

     

  4. 启动gvim时,若是提示c++ runtime error。能够尝试官网的方法:在path环境变量中找出全部带有msvcr90.dll和msvcp90.dll的目录。而后,更新dll到最新。或者更名。我按照这个说明没成功,如今每次启动都要看到一个烦人的提示。工具

若是大家有人知道怎么搞定这个问题。但愿能帮我解决它。谢谢!

相关文章
相关标签/搜索