I seem to be having an issue with LinkLibraryDirectory when running it in Modelsim SE-64 2019.4. I am using this to add a directory of precompiled altera libraries. It appears that on different runs/occasions (even in a clean folder without a modelsim.ini) not all libraries are always mapped thus failing the later compilation of other source files.
Could this have anything to do with Windows/Modelsim handling things in parallel and launching the compilation of other files before all remaps have been done? Any tips/hints where I might go wrong or could start looking to fix this?
If the precompiled altera libraries are not all in the same directory, you may have to do several LinkLibraryDirectory.
You probably also need to look into which libraries does it find and which ones are missing and where are they located.
P.S. With ModelSim/QuestaSim, watch out for spaces in the library path. You can work around issues if you can compose a relative path to the libraries without the space, but otherwise, you may be out of luck – that is one tool bug that I cannot find a good work around for.