J
JonesJ76
Guest
Hi,
Using Visual Studio 2017, I have a C++ Linux project which currently connects to a remote Linux machine (CentOS 7)
I have both GCC 4.8.5 and GCC 7.2.1 installed on the CentOS machine
How can I instruct Visual Studio to use the GCC 7.2.1? Currently it always defaults to 4.8.5.
I have tried adding the following to the Remote Pre-Build Event:
source scl_source enable devtoolset-7
scl enable devtoolset-7 bash
export CC=/opt/rh/devtoolset-7/root/usr/bin/gcc
export CXX=/opt/rh/devtoolset-7/root/usr/bin/cpp
export CPP=/opt/rh/devtoolset-7/root/usr/bin/c++
But no matter what I try the project always builds using GCC 4.8.5.
If I log on to the Linux machine, terminal window and type "scl enable devtoolset-7 bash" followed by "gcc --version" I get "gcc (GCC) 7.2.1 20170829 (Red Hat 7.2.1-1)"
Continue reading...
Using Visual Studio 2017, I have a C++ Linux project which currently connects to a remote Linux machine (CentOS 7)
I have both GCC 4.8.5 and GCC 7.2.1 installed on the CentOS machine
How can I instruct Visual Studio to use the GCC 7.2.1? Currently it always defaults to 4.8.5.
I have tried adding the following to the Remote Pre-Build Event:
source scl_source enable devtoolset-7
scl enable devtoolset-7 bash
export CC=/opt/rh/devtoolset-7/root/usr/bin/gcc
export CXX=/opt/rh/devtoolset-7/root/usr/bin/cpp
export CPP=/opt/rh/devtoolset-7/root/usr/bin/c++
But no matter what I try the project always builds using GCC 4.8.5.
If I log on to the Linux machine, terminal window and type "scl enable devtoolset-7 bash" followed by "gcc --version" I get "gcc (GCC) 7.2.1 20170829 (Red Hat 7.2.1-1)"
Continue reading...