Problem using loadlibrary with 2015a and windows 10

I've just had christmas in August - new PC running Windows 10, and a new copy of matlab 2015a.
I'm having a problem with loadlibrary.
i've gone thru the knowledge base on how to use loadlibrary and i'm sure I'm doing this correctly. I've talked to the software developers here about possible compatibility issues between 32bit dll's and 64bit matlab and he created a 64bit dll for me but i'm still having the same problem:
[a,b] = loadlibrary('mydll.dll', 'mydll.h')
Index exceeds matrix dimensions.
Error in loadlibrary>getLoadlibraryCompilerConfiguration (line 527)
Error in loadlibrary (line 263)
I can't find any information on what the expected matrix dimensions are. i've tried without the [a,b] and get the same results.

Answers (1)

From the Limitations section of the documentation page for LOADLIBRARY:
"You must have a supported C compiler and Perl must be available."
Based on the fact that the subfunction getLoadlibraryCompilerConfiguration is throwing the error, my suspicion is that you do NOT have a supported C compiler installed on your system.

3 Comments

According to our software developer, the compiler that he used is on the supported compiler list (Microsoft Visual C++ 2013 Professional).
perl is installed on my computer, and I downloaded the SDK.
I'm not sure what else to try?
Is there anything specific to the format of the dll or the header file that would be throwing this error?
Do you have a supported compiler available to be called (which includes being set up correctly) from the MATLAB session in which you call LOADLIBRARY?
Which SDK did you install? So far I have not seen any reports that anyone has managed to get SDK 7.1 working with Windows 10 -- something about Microsoft problems with getting the needed Visual C redistributables running.

Sign in to comment.

Categories

Asked:

on 27 Aug 2015

Commented:

on 27 Aug 2015

Community Treasure Hunt

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

Start Hunting!