Receiving error: LINK : fatal error LNK1104: cannot open file 'kernel32.lib' when using loadlbrary is invoked

19 visualizaciones (últimos 30 días)
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

Respuestas (0)

Categorías

Más información sobre Debugging and Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by