Mouhsen.Ibrahim Posted February 12, 2018 Report Share Posted February 12, 2018 (edited) Hi everyone, I installed `systemc v2.3.2` and followed the instructions in user guide found here but when I compile the code using this single command g++ -I. -I/usr/local/systemc-2.3.2/include -L. -L/usr/local/systemc-2.3.2/lib-linux64 -lsystemc -lm -lstdc++ channel.cpp display.cpp packet.cpp receiver.cpp timer.cpp transmit.cpp main.cpp -o main I get so many errors, here are few: /usr/local/systemc-2.3.2/include/sysc/communication/sc_signal_ports.h:311:14: error: no matching function for call to ‘sc_trace(sc_core::sc_trace_file*&, const packet_type&, std::__cxx11::string&)’ sc_trace( p->tf, iface->read(), p->name ); /usr/local/systemc-2.3.2/include/sysc/communication/sc_signal.h:317:26: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘const packet_type’) os << "new value = " << m_new_val << ::std::endl; /usr/local/systemc-2.3.2/include/sysc/tracing/sc_trace.h:279:13: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive] sc_trace( tf, object.read(), name ); main.cpp:42:22: error: ‘class sc_core::sc_clock’ has no member named ‘signal’ sc_trace(tf, CLOCK.signal(), "clock"); ^ main.cpp:51:17: error: no matching function for call to ‘sc_start(int)’ sc_start(10000); ./packet.h:16:69: error: ‘sc_string’ does not name a type extern void sc_trace(sc_trace_file *tf, const packet_type& v, const sc_string& NAME); The source code can be found here Thanks for any help you can offer :) Edited February 12, 2018 by Mouhsen.Ibrahim Fix code and URLs Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.