Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

mcc funtion syntax with quoted text

2 visualizzazioni (ultimi 30 giorni)
Jacopo Remondina
Jacopo Remondina il 6 Nov 2019
Chiuso: MATLAB Answer Bot il 20 Ago 2021
Hi everyone,
I want to deploy my software as a stand-alone executable.
For doing so, I decided to go for the mcc command (tried also the application compiler app, but it's messing up a bit with the included files, so I wanted to tried it). Since my software is quite complex, I decided to use the function syntax
mcc(options)
so that I can build the various options at runtime. Since I want an executable I'm running it using
mcc("-W ""main:,version=0.1.0.0 -T link:exe"" target.m")
but it complain about the fact that option "-x" is no longer supported. In this MWE I think that the problem is the "x" in "link:exe", but in my full code I'm using such letter lots of times (so avoiding it it's not an option).
I tried the MWE with all the single/double quotes combination for the full command and the quoted text, but with no success. Instead, the command syntax
mcc -W 'main:,version=0.1.0.0' -T link:exe target.m
works perfectly (but again: I cannot use it).
Any idea on how to fix this?
Thanks,
Jacopo

Risposte (0)

Questa domanda è chiusa.

Prodotti


Release

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by