Linux VIM installation ycm plugin appears Your C + + compiler does not support c++11

Source: Internet
Author: User

YCM is known as the best use of vim in the plug-ins, can't help but want to try, follow the installation steps, go to this step of the time

Always appears

Your C + + compiler does not support c++11

The error

Go to GitHub ycm issue, found someone met with me the same problem, the way to deal with the following

I looked at the GCC version of my computer, found that incredibly is 4.4.7, the old can not support c++11, so first to update the GCC to 4.8, online there are methods.

and then use

Rpm-qa | grep C + +

command, find a C + + package, RPM-QL + package name, find the specific location of C + +, follow the method of GitHub to re-execute

CXX = "/usr/bin/c++"./install.py

Still error.

Bothered me for a day or two, today inadvertently on the Internet to see the method

which GCC

and find the path to GCC.

/usr/local/bin/gcc

Use this to replace the path above, which is used when executing

CXX = "/USR/LOCAL/BIN/GCC"./install.py's command

Success!!

ha haha haha ha ha ha ha haha

Hereby commemorate

Linux VIM installation ycm plugin appears Your C + + compiler does not support c++11

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.