Minres / SystemC-Components

A SystemC productivity library: https://minres.github.io/SystemC-Components/
https://www.minres.com/#opensource
Apache License 2.0
81 stars 21 forks source link

build fails with c++std>11 #7

Closed JoGei closed 3 years ago

JoGei commented 3 years ago

Hello,

The README specifies a c++11. I was wondering if SCC could be used with c++std>11, too, but noticed that the build fails because of a missing include in incl/scc/report.h

Here is the log of a c++17 build with GCC 10: scc_buildlog.txt

The fix is to include <cstring> in the header to make strcmp visible again. Here is the patch: 0001-insert-cstring-include-for-c-11.patch.txt The include should not interfere with c++11.

eyck commented 3 years ago

It should be possible to use SCC with c++14 but this has not been tested yet. THX for reporting this