Undefined variable issue

In reply to Chethan Mohan:

when I am using
include "c2c_data_transaction.sv" in the environment it is showing me errors but when i paste the transaction class code in place of include “c2c_data_transaction.sv” things are working fine. Please suggest me a solution as how to overcome this