You can use update-alternatives to select the C/C++ compiler version.
First, you set up each version.
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 7
--slave /usr/bin/g++ g++ /usr/bin/g++-7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 8
--slave /usr/bin/g++ g++ /usr/bin/g++-8
Then you select which one is the system default.
sudo update-alternatives --config gcc
Ron
On 8/16/21 3:17 PM, Aardric wrote:
> Hail,
> What is the recommended method to set the gcc compiler used by
> PyBOMBS in building with gnuradio.lwr (gitbranch: maint-3.9)?
> I am trying to trace back problems but first should use 8.2.1 (installed
> as /usr/bin/gcc-8) as opposed to the system gcc which is 7.5.0. I
> assume that CMAKE_CXX_COMPILER_VERSION must be defined somewhere.
>
> Rick
>
>
>
>
No comments:
Post a Comment