vladarm Posted December 5, 2023 Report Posted December 5, 2023 Hello, OS: Red Hat Enterprise Linux Server release 7.9 I am trying to run fir example but keep getting the error: 'coverage_save' is not a member of 'fc4sc::global' (see below), can you please help me to fix this error. fc4sc/examples/fir% make g++ -c -std=c++11 -DFC4SC_NO_THROW -I/cad2/tools/Accellera/systemc/2.3.4_cpp11/include -I/cad2/tools/Accellera/uvm-systemc/fc4sc-2023Nov15/includes src/fir.cpp -o obj/src/fir.o g++ -c -std=c++11 -DFC4SC_NO_THROW -I/cad2/tools/Accellera/systemc/2.3.4_cpp11/include -I/cad2/tools/Accellera/uvm-systemc/fc4sc-2023Nov15/includes src/display.cpp -o obj/src/display.o src/display.cpp: In member function 'void display::entry()': src/display.cpp:73:5: error: 'coverage_save' is not a member of 'fc4sc::global' fc4sc::global::coverage_save("coverage_results.xml"); ^ make: *** [obj/src/display.o] Error 1 Thankyou. Vlad. Quote
Eyck Posted December 5, 2023 Report Posted December 5, 2023 Recent reworks changed the implementation. You need to use #include <xml_printer.hpp> ... std::ofstream ofs(report_file_name); if(ofs) ucis_printer::coverage_save(ofs); Quote
Recommended Posts
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.