Jump to content

Recommended Posts


SystemC 2.3.2 has improved support for C++11, but with that update, cstring has been removed from systemc.h header file. 

This implies in a breakage in systemc-ams build because sca_tdf_ct_ltf_nd_proxy and sca_tdf_ct_vector_ss_proxy uses memset and memcpy. A simple fix would be to include <cstring> to both headers:

  • scams/impl/predefined_moc/tdf/sca_tdf_ct_ltf_nd_proxy.h
  • scams/impl/predefined_moc/tdf/sca_tdf_ct_vector_ss_proxy.h


Share this post

Link to post
Share on other sites

I've just found out that SystemC-2.3.2 can be compiled with SC_INCLUDE_EXTRA_STD_HEADERS to include <cstring>. This should be used when configuring, right before make. With this, there is no need to modify SystemC-AMS header files.

$ mkdir build
$ cd build
$ ../configure CXXFLAGS="-DSC_INCLUDE_EXTRA_STD_HEADERS" --prefix=/usr --otheroptions...
$ make
$ make install


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now