Centos6 安装 systemc2.0 tips

来源:互联网 发布:ipad 软件不能上网 编辑:程序博客网 时间:2024/06/05 04:48

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

原创粉丝点击