Access is denied, SDK Error Loading Library

1 view (last 30 days)
I am having an issue loading a library to MATLAB. I think it is because SDK is not installed right. When I type mex -setup I get the following: MEX configured to use 'Microsoft Windows SDK 7.1 (C)' for C language compilation. Warning: The MATLAB C and Fortran API has changed to support MATLAB variables with more than 2^32-1 elements. In the near future you will be required to update your code to utilize the new API. You can find more information about this at: http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
I do not understand this. What does it mean and how do I fix it? Thanks, S.

Accepted Answer

Walter Roberson
Walter Roberson on 4 Sep 2018
That is not an error. SDK 7.1 is selected. The rest is a warning for people who are trying to compile code that was written in the time when mex only supported 32 bit memory, that code from that era will have to be updated. R14SP3 from September 2005 was the first release that supported 64 bits, so this is a warning for people dealing with code a dozen years old.
  4 Comments
Sarah Crimi
Sarah Crimi on 6 Sep 2018
Hello, Thanks for your help. I found that my Sophos Endpoint antivirus software was blocking the Active Perl. You steered me in the right direction. :)
Sarah Crimi
Sarah Crimi on 6 Sep 2018
Hello, thanks for the help. It ended up being an issue with the virus software, Sophos Endpoint. It was blocking me from using ActivePerl.

Sign in to comment.

More Answers (0)

Categories

Find more on Troubleshooting in MATLAB Compiler SDK in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!