I met following issue in UVM-1.2 built-in example, but it could work well in UVM-1.1d.
questasim 10.3c is the same.
Are these versions not supporting UVM-1.2?
cybvgar-nx23:/home/uvm/uvm-1.2/examples/simple/sequence/basic_read_write_sequence% m Makefile.questa all
make -f Makefile.questa BITS=32 dpi_lib
make[1]: Entering directory `/home/uvm/uvm-1.2/examples/simple/sequence/basic_read_write_sequence'
mkdir -p ../../../../lib
gcc -m32 -fPIC -DQUESTA -g -W -shared -x c -I/tool/cbar/apps/questa/10.2c/questasim/include ../../../../src/dpi/uvm_dpi.cc -o ../../../../lib/uvm_dpi.so
In file included from ../../../../src/dpi/uvm_dpi.cc:38:
../../../../src/dpi/uvm_svcmd_dpi.c: In function 'walk_level':
../../../../src/dpi/uvm_svcmd_dpi.c:45: error: 'for' loop initial declaration used outside C99 mode
../../../../src/dpi/uvm_svcmd_dpi.c: At top level:
../../../../src/dpi/uvm_svcmd_dpi.c:57: error: expected ';', ',' or ')' before '=' token
make[1]: *** [dpi_lib] Error 1
make[1]: Leaving directory `/home/uvm/uvm-1.2/examples/simple/sequence/basic_read_write_sequence'
make: *** [dpi_lib32] Error 2