MATLAB: Do I get an error regarding “cl_inventor2sm.dll” or “cl_sldwks2sm.dll” when registering Simscape Multibody Link Plug-In in MATLAB R2019b

cl_inventor2sm.dllcl_sldwks2sm.dllSimscapesimscape-multibody-linksmlink_linkinvsmlink_linksw

When calling "smlink_linkinv" to register the Simscape Multibody Plug-In, I see the following error:
The module "E:\MATLAB64\R2019b\bin\win64\cl_inventor2sm.dll" failed to load.
Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files.
The specified module could not be found.
The same error is shown when calling "smlink_linksw", but the module that fails to load is cl_sldwks2sm.dll.

Best Answer

This error message caused by a missing DLL in the MATLAB installation.
To fix the issue, place the attached file "xerces-c_3_1.dll" into your MATLABROOT\bin\win64 folder, where MATLABROOT is the folder where MATLAB is installed.
Related Question