nvdla / hw

RTL, Cmodel, and testbench for NVDLA
Other
1.72k stars 567 forks source link

some errors when using systemc #319

Closed CristinaZN closed 4 years ago

CristinaZN commented 4 years ago

i want to test whether systems is installed successfully, and it reported errors below: vp/systemc-2.3.0a/objdir$ g++ test_SystemC.cpp In file included from test_SystemC.cpp:3:0: /usr/include/systemc.h:136:16: error: ‘std::gets’ has not been declared using std::gets; i used ubuntu 18.04 and g++ 7.4.0

Hassan313 commented 4 years ago

@CristinaZN Hi, What was the solution to the problem?

Thank you.

Dueschen commented 3 years ago

Hello, I've found that std:gets has been removed in C++11. Using old versions may be a solution to this problem. Please refer to this: https://stackoverflow.com/questions/38352801/systemc-error-with-the-library Changing the command g++ to g++ std=c++98 may help.