There was an error loading the library
Dear all,
I put the compiled dll file (written in C) in ‘C:Program FilesMATLABR2011bexterninclude
I have a problem when I tried to load the library using the following command:
hfile = [matlabroot ‘externincludedllspinapi.h’];
loadlibrary(‘spinapi’, hfile)
it gave me the following error message:
Error using loadlibrary (line 421)
There was an error loading the library "spinapi"
The specified module could not be found.
Caused by:
Error using loaddefinedlibrary
The specified module could not be found.
My operating system is 64bit Win7, matlab is 64bit version, compiler is Microsoft Software Development Kit (SDK) 7.1, which is recommended in http://www.mathworks.com/support/compilers/R2011b/win64.html
Does anyone know what the problem is? I almost tried every method that I could find in google. But they didn’t help. I am so deperated……
One thing made me very confused was that, I did exactly the same in my old computer, its operating system is 32bit Windows XP, matlab is R2009a 32bit version, compiler is lcc-win32 C, and it could load the library without any error!!!
I will be very thankful to anyone who can help me.
Best Regards,
KitDear all,
I put the compiled dll file (written in C) in ‘C:Program FilesMATLABR2011bexterninclude
I have a problem when I tried to load the library using the following command:
hfile = [matlabroot ‘externincludedllspinapi.h’];
loadlibrary(‘spinapi’, hfile)
it gave me the following error message:
Error using loadlibrary (line 421)
There was an error loading the library "spinapi"
The specified module could not be found.
Caused by:
Error using loaddefinedlibrary
The specified module could not be found.
My operating system is 64bit Win7, matlab is 64bit version, compiler is Microsoft Software Development Kit (SDK) 7.1, which is recommended in http://www.mathworks.com/support/compilers/R2011b/win64.html
Does anyone know what the problem is? I almost tried every method that I could find in google. But they didn’t help. I am so deperated……
One thing made me very confused was that, I did exactly the same in my old computer, its operating system is 32bit Windows XP, matlab is R2009a 32bit version, compiler is lcc-win32 C, and it could load the library without any error!!!
I will be very thankful to anyone who can help me.
Best Regards,
Kit Dear all,
I put the compiled dll file (written in C) in ‘C:Program FilesMATLABR2011bexterninclude
I have a problem when I tried to load the library using the following command:
hfile = [matlabroot ‘externincludedllspinapi.h’];
loadlibrary(‘spinapi’, hfile)
it gave me the following error message:
Error using loadlibrary (line 421)
There was an error loading the library "spinapi"
The specified module could not be found.
Caused by:
Error using loaddefinedlibrary
The specified module could not be found.
My operating system is 64bit Win7, matlab is 64bit version, compiler is Microsoft Software Development Kit (SDK) 7.1, which is recommended in http://www.mathworks.com/support/compilers/R2011b/win64.html
Does anyone know what the problem is? I almost tried every method that I could find in google. But they didn’t help. I am so deperated……
One thing made me very confused was that, I did exactly the same in my old computer, its operating system is 32bit Windows XP, matlab is R2009a 32bit version, compiler is lcc-win32 C, and it could load the library without any error!!!
I will be very thankful to anyone who can help me.
Best Regards,
Kit loading the library, specified module could not be found MATLAB Answers — New Questions