ssingh.codesupport Posted July 17, 2018 Report Share Posted July 17, 2018 Hello, I am trying to execute a basic project in SystemC-2.3.2 with: 1. Module with DUT (.h and .cpp file) 2. Testbench (.h and .cpp file) 3. Top module (main.cpp) The version is : g++ --version g++ (Ubuntu 7.3.0-16ubuntu3) 7.3.0 Due to some linking error, I get the following error while compiling. g++ -I. -I$SYSTEMC_HOME/include -L. -L$SYSTEMC_HOME/lib-linux64 -Wl,-rpath=§SYSTEMC_HOME/lib-linux64 -o main main.cpp -lsystemc -lm /tmp/ccKTqv2Y.o: In function `statem::statem(sc_core::sc_module_name)': main.cpp:(....): undefined reference to `statem::controller()' This error is consistent for all the SC_METHOD declarations. Please let me know where I am going wrong. Any suggestions are welcome. Thank you! 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.