Facing problems while compiling several large Mex files

조회 수: 3 (최근 30일)
Shukla Das
Shukla Das 2021년 9월 29일
댓글: Jan 2021년 10월 1일
I was working by compiling several mex files. Suddenly The error has been occured which I solved earlier but this time I couldn't solve this problem any more. I installed Mex compiler and SDK for several times, still the error is happening . The error I am getting is

답변 (1개)

Jan
Jan 2021년 9월 29일
편집: Jan 2021년 10월 1일
The problem is not the compiler, but hidden in the function mex_compiling in the line 9. It looks like tis function expects the current directory to be a specific folder. So take a look into this function to find out, which folder this might be.
Using relative path names causes such bugs frequently. Prefer absolute path names.
  댓글 수: 4
Shukla Das
Shukla Das 2021년 9월 30일
Thank you for your concern. This subfolder is expected on current folder which is mentioned in the code. Actually, this code ran few days ago without showing any problem. Currently, it's giving this error. Earlier I solved this same error for this code by installing Mex compiler and SDK. For present, I did this again but still it's not working.
Jan
Jan 2021년 10월 1일
The current folder can be changed by GUI oder TImer callbacks unexpectedly. It is much safer not tzo rely on the current folder, but to use absolute file names. You can obtain the path of a currently running function by:
myPath = fileparts(mfilename('fullpath'));

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

카테고리

Help CenterFile Exchange에서 Troubleshooting in MATLAB Compiler SDK에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by