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

9 views (last 30 days)
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

Answers (0)

Categories

Find more on Debugging and Analysis in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!