We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
gcc supports multiple c++ standards, 98, 03, 11, 14, etc. And SystemC requires the consumer application and the SystemC liberary are built against the same C++ standard. So what standard was used to build the System library coming with Fast Model v11.15?
I created a simple application, which uses c++ standard 14, and linked it against the SystemC library coming with Fast Models 11.15, but got this error:
...
/opt/arm/SystemC/Accellera/SystemC/include/sysc/kernel/sc_ver.h:182: undefined reference to `sc_core::sc_api_version_2_3_3_cxx201402L<&sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>::sc_api_version_2_3_3_cxx201402L(sc_core::sc_writer_policy)'/usr/bin/ld: CMakeFiles/SimSSD.dir/src/uart.cpp.o: in function `__static_initialization_and_destruction_0(int, int)':/opt/arm/SystemC/Accellera/SystemC/include/sysc/kernel/sc_ver.h:182: undefined reference to `sc_core::sc_api_version_2_3_3_cxx201402L<&sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>::sc_api_version_2_3_3_cxx201402L(sc_core::sc_writer_policy)'
Thanks
-Oscar
Fast Models is compiled with C++11 support enabled so you must use -std=c++11 (Please see the note in the doc below).
developer.arm.com/.../Requirements-for-Fast-Models