Jump to content

Recommended Posts

Posted

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.

Posted

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);

 

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...