Matlab compile Errors

83 views
Skip to first unread message

VelmexControls

unread,
Dec 13, 2012, 7:07:14 PM12/13/12
to velmex-...@googlegroups.com
My 1st attempts are working with Labview, however in Matlab I get the following error just calling the windows "loadlibrary" function

>> loadlibrary 'VxmDriver', 'VxmDriver.h'
??? Error using ==> loadlibrary at 441
Building VxmDriver_thunk_pcwin64 failed.  Compiler output is:
cl -I"C:\Program Files\MATLAB\R2011a\extern\include"  /Zp8  /W3
/D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0  /nologo
-I"N:\Velmex\Controls\VXM\DRIVER\64bit" -I"N:\Velmex\Controls\VXM\DRIVER\64bit"
"VxmDriver_thunk_pcwin64.c" -LD -Fe"VxmDriver_thunk_pcwin64.dll"
VxmDriver_thunk_pcwin64.c
LINK : fatal error LNK1104: cannot open file 'kernel32.lib'


I downloaded the Windows SDK for 2008 and installed at the default location, however it did not get rid of this problem.
Does anyone know how to fix this problem? or could ask Matlab why a simple function such as "loadlibrary" would cause this error?

ny.rs232

unread,
Dec 14, 2012, 6:05:40 PM12/14/12
to
Sounds like a hard one, but what does your Matlab support say??
(Do not let them give you a load of BS cause "LoadLibrary" is already in the OS so it must be something they are doing)
 
Charlie
Reply all
Reply to author
Forward
0 new messages