Receiving error: LINK : fatal error LNK1104: cannot open file 'kernel32.lib' when using loadlbrary is invoked
9 次查看(过去 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!