Help ! mcc -m NOT WORK

30 visualizaciones (últimos 30 días)
Ivan Mich
Ivan Mich el 9 de Ag. de 2020
Comentada: Rik el 30 de Oct. de 2020
Hello,
I use
mcc -m myfile.m
in convert to make a .m file to .exe file.
In the past I used this command and it worked, but now it is no use. Command window shows me:
Error using (line 4)
Call to mcc failed with return code 1 (0x1).
Could you help me?

Respuestas (1)

Image Analyst
Image Analyst el 9 de Ag. de 2020
Could be lots of reasons. Maybe you no longer have a license for the Compiler Toolbox. Maybe there is a syntax error on that line. Attach myfile.m and I'll see if I can compile it.
Run the attached file and tell me what you see.
  6 comentarios
Image Analyst
Image Analyst el 10 de Ag. de 2020
Ivan, I don't think that's my program. My program, attached, does not do mcc at all. It does not do "mcc -m width_v2", and in fact line 4 is a blank line. I've attached it again. Please run it and tell us what it says.
Rik
Rik el 30 de Oct. de 2020
I got this exact same error (Unable to open file "C:\Users\[]\Desktop\[]\requiredMCRProducts.txt": Permission denied.) when using a folder on my desktop. I even ran Matlab as administrator.
I moved my folder to the root of C:\, and now suddenly it works. So maybe it has something to do with permission management of the desktop on Windows.

Iniciar sesión para comentar.

Categorías

Más información sobre Manage Products en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by