User guide
19-45
Using the VCS / SystemC Cosimulation Interface
If you use the option -sysc=<version>, you must use it consistently
during both analysis and compilation. Any mismatch in the version
displays the error message:
Error: Mixing different SystemC versions is not allowed.
Either add or omit argument -sysc=<version> to all
calls of vlogan, vhdlan, syscan, and vcs
where you use SystemC.
Please note, this option is not a replacement for -sc_model.
Compiling Source Files
If you need to compile the source files, which include systemc.h, in
your own environment and not with the syscan script, then add
compiler flag -I$VCS_HOME/include/systemc201 or
-I$VCS_HOME/include/systemc21 for SystemC2.0.1 and for
SystemC2.1 respectively.