Getting error as unexpected identifier and error in class specification

In reply to dave_59:

HI Dave ,

THanks a lot . Solved some errors.But still getting errors as below . where one error is[ Cannot find `include file “uvm_macros.svh” in directories:] because tool was selecting the [/tools/bda/questa/questasim/ovm-2.1.2/…/verilog_src/ovm-2.1.2/src] OVM path .I think so. How to change the path

vlog -f file.f -R +UVM_TESTNAME=my_test
QuestaSim vlog 10.3c Compiler 2014.07 Jul 18 2014
Start time: 15:35:25 on Jul 01,2015
vlog -f file.f -R “+UVM_TESTNAME=my_test”
– Compiling module counter_2
– Compiling interface intf
** Error: …/tb/pac.sv(1): Cannot find include file "uvm_macros.svh" in directories: , , , , /tools/bda/questa/questasim/ovm-2.1.2/../verilog_src/ovm-2.1.2/src -- Compiling package pac -- Importing package uvm_pkg (uvm-1.1d Built-in) ** Error: ** while parsing file included at ../tb/pac.sv(4) ** at my_transaction.svh(6): (vlog-2163) Macro uvm_object_utils_begin is undefined.
** Error: ** while parsing file included at …/tb/pac.sv(4)
** at my_transaction.svh(6): near “(”: syntax error, unexpected ‘(’, expecting function or task
** Error: ** while parsing file included at …/tb/pac.sv(4)
** at …/tb/toptest.sv(1): Cannot find `include file “uvm_macros.svh” in directories:
, , , , /tools/bda/questa/questasim/ovm-2.1.2/…/verilog_src/ovm-2.1.2/src
– Compiling module top
** Error: ** while parsing file included at …/tb/pac.sv(5)
** at sequence.svh(6): near “m”: syntax error, unexpected IDENTIFIER, expecting class
End time: 15:35:26 on Jul 01,2015, Elapsed time: 0:00:01
Errors: 5, Warnings: 0