Posted Aug 26, 2009 8:54:17 PM
Spent some time today getting SystemC setup on my workstation at Clarkson, for a course I am taking: Hardware/Software System Design and Verification. SystemC is, in short, a C++ class and macro library with a simulation kernel that allows you to describe a hardware system using C++ syntax and language features... or something.
In any event, installation on Ubuntu 9.04 wasn't quite as straight forward as the instructions would have you think. Jaunty uses GCC 4.3, which is more strict in certain aspects than GCC 4.1, which is the version tested by the SystemC people. Compilation will fail, because the src/sysc/utils/sc_utils_ids.cpp doesn't have the proper includes. Simply add:
#include <cstdlib>
#include <cstring>
using namespace std;
to the file, right below the existing #include "systemc.h" directive, and everything will compile and install without problems.
For detailed instructions, and a sample program to test with, check out: Installing SystemC On Ubuntu 9.04 on phWikid (where the learnin's at).
add to del.icio.us