Error while Compiling the UVM Testbench

In reply to Divya_LTTS:

This error messages typically arises when you do not import the nase class library.
Please add these 2 lines at the top of your code:

import uvm_pkg::*;
`include "uvm_macros.svh"

And you should review how you have packaged your code.
Put the agent cod and below in a seperate package.