GithubHelp home page GithubHelp logo

systemc's Introduction

installation

install g++

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

install automake

sudo aptitude install autotools-dev sudo aptitude install automake

normal installation

mkdir objdir ../configure make clean make make check

Compilation with different c++17 c++14 c++11

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

compiling from examples directory by hand

in build-unix/Makefile.config

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

in build-unix/Makefile.rules

INCDIR += -I. -I.. -isystem $(SYSTEMC_INC_DIR)

disable version check

line 182 of $SYSTEMC_HOME)/include/sysc/kernel/sc_ver.h add the following (line 171): #define SC_DISABLE_API_VERSION_CHECK 1

systemc's People

Contributors

frankieliu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.