Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

mcc funtion syntax with quoted text

2 Ansichten (letzte 30 Tage)
Jacopo Remondina
Jacopo Remondina am 6 Nov. 2019
Geschlossen: MATLAB Answer Bot am 20 Aug. 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

Antworten (0)

Diese Frage ist geschlossen.

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by