Receiving error: LINK : fatal error LNK1104: cannot open file 'kernel32.lib' when using loadlbrary is invoked
조회 수: 8 (최근 30일)
이전 댓글 표시
Hi -
We are running into this error - LINK : fatal error LNK1104: cannot open file 'kernel32.lib' - when trying to load an external C++ library into Matlab. The error is thrown on a machine running Matlab 2014b. It is not thrown on a machine running Matlab 2015a. However, we do not have the ability to upgrade on the machine in question to see if that gives resolution.
None of the file paths the libraries are in have spaces in them, so that appears to be ruled out.
The full output of the error follows:
Error using loadlibrary (line 440) Building epanet2_thunk_pcwin64 failed. Compiler output is: cl -I"C:\Program Files\MATLAB\R2014b\extern\include" /W3 /nologo /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 -I"C:\Program Files\MATLAB\R2014b\extern\include" -I"C:\Program Files\MATLAB\R2014b\simulink\include" -I"C:\Users\sschwet\Documents\MATLAB" -I"C:\Users\sschwet\Documents\MATLAB" "epanet2_thunk_pcwin64.c" -LD -Fe"epanet2_thunk_pcwin64.dll" epanet2_thunk_pcwin64.c LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
Thanks!
Steve
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Debugging and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!