mexw64已被打开
10 views (last 30 days)
Show older comments
运行mexw64文件,再次编译会报cannot open output file xxx.mexw64:Permission denied collect2.exe: error: ld returned 1 exit status
2 Comments
Answers (1)
cdarling
on 4 Jun 2025
可参考评论中的内容
因为正在使用中的文件是无法删除的,这是操作系统的限制,与MATLAB无关
因此需要释放正在占用的文件
你在生成mex之后应该是运行过它,所以它已经加载到MATLAB环境中了,这个文件是打开状态
要重新生成,就需要覆盖之前生成的文件,因此要清除之前加载的程序
换种方式理解,相当于打开的word文件也无法直接覆盖或者删除,需要关闭文件,再删除或者覆盖
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!