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.