cannot delete file after complie using mex
이전 댓글 표시
I complied cpp file using "mex",and created ".mexw64" file, then I modified my cpp file, but a problem occured at this time.
Error using mex
LINK : fatal error LNK1104: cannot open file“matrixMultiply.mexw64”
when I tried delete “matrixMultiply.mexw64", another problem occured:
Warning: File not found or permission denied
I do like this when complie:
blaslib = fullfile(matlabroot,'extern','lib',computer('arch'),'microsoft','libmwblas.lib');
mex('-v', '-largeArrayDims', 'matrixMultiply.cpp', blaslib);
how can I fix it?
답변 (1개)
Jan
2016년 4월 21일
This problem occurres, when the mexw64 file is used by another instance of Matlab. Run
clear matrixMultiply
in these Matlab sessions, or close these sessions.
댓글 수: 2
lz liu
2016년 4월 21일
xingxingcui
2021년 10월 14일
Similar question, how can I solve it?
"The operation could not be completed because the file was already open in MATLAB"
카테고리
도움말 센터 및 File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!