Vscode Cpptools Plugin does not display the symbol list correctly in CentOS 7 solution

Source: Internet
Author: User

Vscode plug-in cpptools 0.9.3 need glibc 2.18 version, but CentOS 7 does not have this version of glibc, so the link library is lost, the background service does not work. Follow these steps to fix this problem.

With the 0.9.3 it seems, both glibc_2.18 & glibc_2.17 is required.
However if want a workaround try this:

    1. wget HTTP://FTP.GNU.ORG/GNU/GLIBC/GLIBC-2.18.TAR.XZ
    2. Tar xvf glibc-2.18.tar.xz
    3. CD glibc-2.18
    4. mkdir Build
    5. CD Build
    6. .. /configure--prefix=/opt/glibc-2.18
    7. sudo make install
    8. Create a bash script file called Microsoft.VSCode.CPP.Extension.linux.sh in "~/.vscode/extension/ Ms-vscode.cpptools-0.9.3/bin "with the following contents ...
#!/bin/bash    /opt/glibc-2.18/lib/ld-linux-x86-64.so.2 --library-path /opt/glibc-2.18/lib:/lib64:/usr/local/lib64 ~/.vscode/extensions/ms-vscode.cpptools-0.9.3/bin/Microsoft.VSCode.CPP.Extension.linux  
    1. chmod a+x Microsoft.VSCode.CPP.Extension.linux.sh
      You can try-to-start it on the comand line./microsoft.vscode.cpp.extension.linux.sh
      If It starts silently without errors, then you is fine, otherwise add missing dependencies to the--library-path option I n the script,
      If you'll see the something like this,
./Microsoft.VSCode.CPP.Extension.linux: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.18‘ not found (required by ./Microsoft.VSCode.CPP.Extension.linux)./Microsoft.VSCode.CPP.Extension.linux: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.17‘ not found (required by ./Microsoft.VSCode.CPP.Extension.linux)
    1. Modify "~/.vscode/extensions/ms-vscode.cpptools-0.9.3/out/src/languageserver/c_cpp.js"
      The following line from "Extensionsprocessname + =". Linux '; "to" extensionprocessname + = '. linux.sh '; "

Vscode Cpptools Plugin does not display the symbol list correctly in CentOS 7 solution

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.