User guide

18-84
DirectC Interface
Include the -CC option as follows:
-CC "-I$VCS_HOME/include"
Useful Compile-Time Options
VCS has other compile-time options that are not specially for DirectC
but you might find them useful when enabling and calling C/C++
functions in your Verilog source code.
-cc
Specifies the C compiler (default is cc in your search path)
-cpp
Specifies the C++ compiler (default is CC in your search path)
-ld
Specifies the linker for final linking to build simv (default is the
same as the C++ compiler)
Note:
Don't specify incompatible C++ compiler and linker (by specifying
-cpp and -ld simultaneously. That may result in compile failure
with unrecognized symbols.
These options may be necessary on the vcs command line. If you
include object files on the command line, you must include the options
to specify which compiler and linker generated these object files.