1,下載systemc-2.2.0.tgz;
2,解壓;
3,$ cd systemc-2.2.0
4, $ madir objdir
5, $ cd objdir
6, $ ../configurate --prefix=指定目錄
7, $ make
然後出現如下錯誤
sc_utils_ids.cpp:110: error: ‘getenv’ is not a member of ‘std’
sc_utils_ids.cpp:111: error: ‘strcmp’ was not declared in this scope
sc_utils_ids.cpp: At global scope:
sc_utils_ids.cpp:119: warning: ‘sc_core::forty_two’ defined but not used
8, $ vi ../src/sysc/utils/sc_utils_ids.cpp加入如下3行;
#include <string.h>
#include <cstdlib>
using namespace std;
保存退出
9,重新 $make
10, $make install
11,$ rm -rf objdir
12,Done