When I recompile the design files which have already been compiled by others.
I see the following error:
# ** Error: (vcom-42) Unsupported ModelSim library format for "work".
How to get this issue solved?
This error occurs when the compiled work directory is stale and the contents where compiled using a different version of simulator. In order to overcome this problem delete the work directory and recompile the source files.
Below is an example:
For modelsim, run following commands before you recompile (vcom) the design or put them into the .do file (or other scripts).
vmap work work
vcom <source files>