how to use and install SystemC in terminal mac OS X?

前端 未结 3 822
清酒与你
清酒与你 2020-12-17 06:49

how to use and install SystemC in terminal mac OS X?
I tried the Logic poet application, But i use os x 10.10 so it doesn\'t work.
so i want to know

3条回答
  •  心在旅途
    2020-12-17 07:29

    Install

    Go here click the first link and fill in your information to get the source code

    http://www.accellera.org/downloads/standards/systemc

    Then cd to the folder

    Then run the following commands

    ./configure --with-unix-layout
    gmake
    sudo gmake install
    gmake clean
    

    After you do that it should all be saved in your use/local/(lib&include) directories

    To Use

    In code do this #include "systemc.h"

    I use a single makefile normally. But you could write the following to link the library. Given your cpp file is called main.

    g++ -o main main.cpp -I/usr/local/include -L/usr/local/lib -lsystemc
    

提交回复
热议问题