Access is denied, SDK Error Loading Library

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.

 채택된 답변

Walter Roberson
Walter Roberson 2018년 9월 4일

0 개 추천

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

Sarah Crimi
Sarah Crimi 2018년 9월 5일
I then get this error afterwards: Access is denied. ******* Error using loadlibrary The MATLAB program file describing your library could not be found, possible Perl or file system error.
Error in FTD2XX_SPI_libMPSSE (line 62) loadlibrary( Libname, 'libMPSSE_spi_matlabFriendly.h');
That could happen if you do not have write access to the directory you are cd'd to when you call loadlibrary() -- or possibly it tries to write in a directory whose name you can find by running
tempdir()
Sarah Crimi
Sarah Crimi 2018년 9월 6일
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 2018년 9월 6일
Hello, thanks for the help. It ended up being an issue with the virus software, Sophos Endpoint. It was blocking me from using ActivePerl.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Troubleshooting in MATLAB Compiler SDK에 대해 자세히 알아보기

질문:

2018년 9월 4일

댓글:

2018년 9월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by