Error: (vlog-13069) E:/Questasim/examples/180121/uvm_write_txn.sv(9): near "uvm_sequence_item": syntax error, unexpected IDENTIFIER. ** Error: E:/Questasim/examples/180121/uvm_write_txn.sv(9): Error in class extension specification

In reply to vijaykumarvec:
What you say you are compiling does not make sense. File 2 `includes file 1 and 3, you would need to compile file 2 first, and not put file 1 and 3 on the command line. File 4 imports ram_pkg, which is defined by the contents of file 2, it would not compile successfully unless all of the other files compiled successfully.

Hi Dave, I changed the Compile order, now i am compiling in the following order
File 2
File 1
File 3
File 4
Now File 2 & 1 are compilied successfully without any error, but File 3 i am getting the same error - ** Error: (vlog-13069) E:/Questasim/examples/180121/uvm_wr_txn_macro.sv(4): near “uvm_sequence_item”: syntax error, unexpected IDENTIFIER.
** Error: E:/Questasim/examples/180121/uvm_wr_txn_macro.sv(4): Error in class extension specification.
May i know why? I guess problem is with accessing UVM Library files.