Compilation error ..please hlp me solve this

In reply to Rohith j:

You are trying to compile the Monitor file alone. Correct?

You have to import the uvm_pkg and to include uvm_macros first.