Uvm package compilation error

hi
when i compile ubus example it is not showing error, when i compile my environment it is showing this error

Error-[SE] Syntax error
Following verilog source has syntax error :
“/VCS_MX_2011.03/etc/uvm-1.0/src/dpi/uvm_dpi.cc”, 28: token is ‘#’
#define VCS
^
can anyone help me out of this…

You are passing DPI-c code to SV compiler. VCS as a script around the executable(s) tries to figure out internaly, but at times gets confused. Show your command line. Typically in VCS you can use UVM with:

vcs -ntb_opts uvm

that should take care of it.

HTH
Ajeetha, CVC

Hi

Even I have got similar error.

Am stuck with package compilation error. here is the error i was getting while compiling,

QuestaSim vlog 10.0a Compiler 2011.02 Feb 21 2011
– Compiling package uvm_pkg
– Compiling package pci_package
– Importing package uvm_pkg
** Error: pci_package.sv(27): near “endpackage”: syntax error, unexpected endpackage, expecting function or task
make: *** [comp] Error 2

please anyone can help me in resolving this error.

Thanks in advance.

In reply to rameshsedam:

Without seeing your pci_package.sv, it will be difficult to diagnose the problem.
-Tom