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
本文详细介绍了如何安装 SystemC 2.2.0,并解决了安装过程中遇到的特定编译错误。通过修改源文件并重新编译,最终完成安装。
1602

被折叠的 条评论
为什么被折叠?



