LNK1181: cannot open input file 'mclmcrrt.lib'

12 vues (au cours des 30 derniers jours)
Mrinal
Mrinal le 28 Mai 2014
I am getting a linker error 'LNK1181' when trying to compile a MEX file ' buildMex' with Visual Studio 2013 on Windows 8 using MATLAB 8.1 (R2013a).
LINK : fatal error LNK1181: cannot open input file 'mclmcrrt.lib'
C:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL: Error: Link of 'mexDemo2.exe' failed.
Error using mex (line 206) Unable to complete successfully.
Error in buildMex (line 7) mex mexDemo2.cpp -v SRL_CV_SIM3.lib

Réponse acceptée

Vignesh Rangaishenvi
Vignesh Rangaishenvi le 17 Juin 2014
You have to place the path containing the mclmcrrt.lib or mclmcrrt.dll file before the MATLAB root path in the system environment variable 'path'. You can use the path editor to achieve the same.
For example, if you use MATLAB R2014a, and the mclmcrrt8_3.dll file resided in the path C:\MATLAB\R2014a\runtime\win64, then you would have to place this path before the MATLAB root path C:\MATLAB\R2014a.

Plus de réponses (0)

Catégories

En savoir plus sur Write C Functions Callable from MATLAB (MEX Files) dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by