sudo apitute install g++-8 sudo update-alternatives –install /usr/bin/gcc gcc /usr/bin/gcc-7 700 –slave /usr/bin/g++ g++ /usr/bin/g++-7 sudo update-alternatives –install /usr/bin/gcc gcc /usr/bin/gcc-8 800 –slave /usr/bin/g++ g++ /usr/bin/g++-8 sudo update-alternatives –config export CXX=g++ export CXXFLAGS=-std=c++2a
sudo aptitude install autotools-dev sudo aptitude install automake
mkdir objdir ../configure make clean make make check
in gnu land, it is ok to link different versions together the important part is that you must link it with the appropriate libstdc++.so version which is g++-x version dependent, i.e. don’t compile with different version of g++-x
if you do update a g++ as in the above (from v7 to v8), then you need to recompile everything
You need to modify the following lines in Makefile.config SYSTEMC_HOME?=/home/adam/Downloads/SystemC/Core/systemc-2.3.3-c++17 TARGET_ARCH = linux64 SYSTEM_INC_DIR = $(SYSTEMC_HOME)/include FLAGS_COMMON = -g -Wall -std=c++2a
INCDIR += -I. -I.. -isystem $(SYSTEMC_INC_DIR)
line 182 of $SYSTEMC_HOME)/include/sysc/kernel/sc_ver.h add the following (line 171): #define SC_DISABLE_API_VERSION_CHECK 1