Symbol not exported error

Hi all,

I am getting following error -
Error-[SV-SNE] Symbol not exported.
/rtl/gtlc/gtlc_tb/gtlc_seq_items.sv, 8
gtlc_env_pkg
The symbol ‘RMBusConfig’ is visible in package ‘RMBUS_BFM.RMBusBFM_pkg’, but has not been exported for re-import in other scopes.

Here is the code snippet -

`ifndef GTLC_SEQ_ITEMS
`define GTLC_SEQ_ITEMS

import IosfPkg::Iosf;
`ifndef SOC_COMPILE
  
class rmbus_bfm_xItem extends RMBusBFM_pkg::RMBusSeqItem;
  static RMBusBFM_pkg::RMBusConfig _configs;
  
  `ovm_object_utils(rmbus_bfm_xItem)

  function new(string name = "rmbus_bfm_xItem");
    super.new();
    configs   = _configs;
  endfunction : new
  
endclass : rmbus_bfm_xItem

Can anyone tell what exactly this error means?

Very likely cause is a missing export/import in your package RMBusBFM_pkg. Show us contents of the same. Some code snippet that might help you fix your code:


package RMBusCfg_pkg;
  class RMBusConfig;
  endclass : RMBusConfig 
endpackage : RMBusCfg_pkg

package RMBusBFM_pkg;
  import RMBusCfg_pkg::RMBusConfig;
  // CVC comments --> You are missing the below export 
  // export RMBusCfg_pkg::*

endpackage : RMBusBFM_pkg


Try and let us know/ or show us more code on the packages you have at your end.

Good luck
Ajeetha, CVC

Hi Ajeetha,

Thanks for your reply. I ran in backward compatibility mode and it worked as it is. Earlier I was running latest version of VCS H-2013.06 and so if you have packages inside packages, you have to scope them properly. New version of VCS is more System Verilog LRM compliant.