I'm implemented a small virtual prototype using SystemC. The CPU model of my system is very simple and only has a function read and a function to write to a memory mapped address. I need to be able to call this functions from a C file, not a C++ file. Hoewver, when trying to do this and compile everything together I get an error:
/cad/gnu/gcc/systemc-2.3.1/include/sysc/packages/boost/config/select_stdlib_config.hpp:20:19: fatal error: utility: No such file or directory
make: *** [prj/CMakeFiles/mpslvp.x.dir/src/mpslvp/c_test.c.o] Error 1
make: *** [prj/CMakeFiles/mpslvp.x.dir/all] Error 2
make: *** [all] Error 2
The problem has to do with the fact that my C file includes the header file of the CPU module which of course includes the systemc library. When removing the systemc dependencies, the code compiles. Is it possible to have a C file implementing functions that indirectly start a SystemC transaction? Hope I explained myself. Thanks in advance!