Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

64 bit DLL error using loadlibrary

144 views
Skip to first unread message

Kees de Kapper

unread,
Jun 26, 2014, 9:37:08 AM6/26/14
to
Hi all,

I'm using Matlab 2014a in 64 bit mode. Since I have to update some code from 32 bit to 64 bit, I have update some dll and header files as well.

Now I'm trying to use the new 64 bit ones using loadlibrary but Ive got a persistent error:
=====
Index exceeds matrix dimensions.

Error in loadlibrary>getLoadlibraryCompilerConfiguration (line 497)
compilerConfiguration=compilerConfiguration(1); %unix machines return c and cpp compilers here

Error in loadlibrary (line 253)
[thunk_build_fn,preprocess_command]=getLoadlibraryCompilerConfiguration(ccinclude,header,headername,compilerConfiguration);
=====

I've found out that this error also occurs when trying to load a 32 bit library into a 64 bit environment. However, I'm pretty sure that this is not the problem in my case.

What else could it be? Does any one have a suggestion?
Many thanks in advance.

Kind regards,
Kees

Steven Lord

unread,
Jun 26, 2014, 10:03:01 AM6/26/14
to

"Kees de Kapper" <kees_de...@hotmail.com> wrote in message
news:loh7m4$ovm$1...@newscl01ah.mathworks.com...
http://www.mathworks.com/help/matlab/ref/loadlibrary.html

"You must have a supported C compiler and Perl must be available. "

There's a link on that documentation page where you can see what C compilers
are supported.

I think the way you tell MATLAB what compiler to use with LOADLIBRARY is the
same way you tell it what compiler to use with MEX, though I'm not certain
of that.

http://www.mathworks.com/help/matlab/matlab_external/changing-default-compiler.html

--
Steve Lord
sl...@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Siddharth Telang

unread,
Mar 14, 2015, 5:41:21 AM3/14/15
to
"Steven Lord" <Steve...@mathworks.com> wrote in message <loh975$3v$1...@newscl01ah.mathworks.com>...
Facing the same problem.
Have you found any solution ?

Siddharth Telang

unread,
Mar 14, 2015, 5:43:16 AM3/14/15
to
"Kees de Kapper" wrote in message <loh7m4$ovm$1...@newscl01ah.mathworks.com>...
hi,
Facing the same problem
Have you found any solution to it ?
0 new messages