LNK1181: cannot open input file 'mclmcrrt.lib'

조회 수: 12 (최근 30일)
Mrinal
Mrinal 2014년 5월 28일
답변: Vignesh Rangaishenvi 2014년 6월 17일
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

채택된 답변

Vignesh Rangaishenvi
Vignesh Rangaishenvi 2014년 6월 17일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by