- If you are trying to compile any MATLAB file, then it’s corresponding .dll and .lib files gets linked in the process. But if you want to add external .lib files please refer this link
- In order to understand which compiler MATLAB is using for compilation you can make use of the following command
mex -setup language
For more information, you can refer to this documentation