mexw64已被打开

11 visualizaciones (últimos 30 días)
雨涵 陈
雨涵 陈 el 2 de Jun. de 2022
Respondida: cdarling el 4 de Jun. de 2025
运行mexw64文件,再次编译会报cannot open output file xxx.mexw64:Permission denied collect2.exe: error: ld returned 1 exit status
  2 comentarios
倩 刘
倩 刘 el 7 de Oct. de 2022
请问你解决了嘛,我也出现这个问题,一直显示文件被占用
茄宇
茄宇 el 8 de Mayo de 2025
  1. use command: "clear your_mex_file_name" or "clear mex"

Iniciar sesión para comentar.

Respuestas (1)

cdarling
cdarling el 4 de Jun. de 2025
可参考评论中的内容
感谢@茄宇的分享
因为正在使用中的文件是无法删除的,这是操作系统的限制,与MATLAB无关
因此需要释放正在占用的文件
你在生成mex之后应该是运行过它,所以它已经加载到MATLAB环境中了,这个文件是打开状态
要重新生成,就需要覆盖之前生成的文件,因此要清除之前加载的程序
换种方式理解,相当于打开的word文件也无法直接覆盖或者删除,需要关闭文件,再删除或者覆盖

Categorías

Más información sobre 安装和许可简介 en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!