loadlibrary using default is not working

The Matlab example for loading a library:
loadlibrary ('shrlibsample')
fails with:
Index exceeds matrix dimensions.
Error in loadlibrary>getLoadlibraryCompilerConfiguration (line 527)
Error in loadlibrary (line 263)
I'm using the trial version if it matters.
And I did:
addpath(fullfile(matlabroot, 'extern','examples','shrlib'))
before calling loadlibrary(...)

1 件のコメント

Gary Pajer
Gary Pajer 2016 年 3 月 15 日
Same issue here. So far any library that I try to loadlibrary fails with "Index exceeds matrix dimensions."

サインインしてコメントする。

 採用された回答

Philip Borghesani
Philip Borghesani 2015 年 3 月 20 日

0 投票

This looks like an installation issue with your compiler (you do have a c compiler installed?). I would first see if the mex command is working and set it up if needed. If that leads nowhere I would contact support, at a minimum a better error message should have been produced.

3 件のコメント

Tom Lawson
Tom Lawson 2015 年 3 月 20 日
Thanks for the reply.
I downloaded and installed "Microsoft Windows SDK for Windows 7 and .NET Framework 4 and then it worked."
carlos thummanapally
carlos thummanapally 2015 年 10 月 13 日
hello..philip... i have the same problem.. and iam using windows 10 and Matlab 2015a version. what should i do?
Walter Roberson
Walter Roberson 2015 年 10 月 13 日
carlos, I have not heard of anyone getting SDK 7.1 working with MATLAB R2015a on Windows 10. Possibly someone has it working and has not said so or described the method.

サインインしてコメントする。

その他の回答 (1 件)

Gary Pajer
Gary Pajer 2016 年 6 月 10 日

0 投票

For later versions of OS X you have to make some changes to your Matlab setup.
I found that the instructions here worked for me on OS X 10.11.5

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

タグ

質問済み:

2015 年 3 月 20 日

回答済み:

2016 年 6 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by