在fedora13中编译systemc库源码

编译的时候会报下面的错误:

‘getenv’ not in ‘std’ sc_utils_ids.cpp:110
‘strcmp’ not declared this scope, sc_utils_ids.cpp:111

解决办法:
在src/sysc/util/sc_utils_ids.cpp的62行的,即#include "sysc/utils/sc_report.h"语句下添加:
#include <cstdlib>
#include <cstring>

Advertisements
This entry was posted in Computers and Internet. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s