In reply to trogers:
Yes, the example is incorrect and should have the `include “uvm_macros.svh” as part of the simpleadder_pkg.sv. I’m guessing that VCS will automatically include the required file if it isn’t specified.
There are also other errors in this example as well, in that they compile the simpleadder_pkg but then fail to import it into the testbench. VCS will often hide these poor coding practices, leading to non-compliant code.