In reply to gowthamnirmalraj:
If I remember correctly, QuestaSim comes with a pre-compiled UVM library (it was called something like mtiUvm), which it automatically loads when it notices you import uvm_pkg into your code. You’ll have to look in the manual how to force it to compile a UVM version with other defines.