The last step for producing a working XSI-based C/C++ program involves the compilation of a HDL design and packaging it together with the Vivado simulator to become your design shared library. You may repeat this step whenever there is a change in HDL designs source code.
Create your design shared library by invoking xelab on the HDL design and including the -dll switch to instruct xelab to produce a shared library instead of the usual snapshot for use with the Vivado simulator's user interface.
Type the following in the Linux command line to create a design shared library at
xelab work.top1 work.top2 -dll -s design
work.top2 are the top module names and
design is the snapshot name.
See xelab, xvhdl, and xvlog xsim Command Options for more details on compiling an HDL design.