How to use multiple versions of GCC

后端 未结 5 1084
谎友^
谎友^ 2020-12-01 04:09

We have a new application that requires glibc 2.4 (from gcc 4.1). The machine we have runs on has gcc 3.4.6. We can not upgrade, and the application must be run on this ma

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-01 04:48

    for Ubuntu it's pretty easy

    sudo add-apt-repository ppa:ubuntu-toolchain-r/test

    sudo apt-get update

    and then install for example gcc version 6

    sudo apt-get install gcc-6

提交回复
热议问题