cannot delete file after complie using mex

16 ビュー (過去 30 日間)
lz liu
lz liu 2016 年 4 月 21 日
コメント済み: xingxingcui 2021 年 10 月 14 日
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
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
lz liu 2016 年 4 月 21 日
I tried clear matrixMultiply,then when I deleted matrixMultiply.mexw64,the problem still occured.
Warning: File not found or permission denied
xingxingcui
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"

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

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by