Why does the MCC command not create output directories specified using "-d" option if they do not exist when using MATLAB Compiler 4.11 (R2009b)?
Show older comments
I am using MATLAB Compiler 4.11 (R2009b) to create a standalone application from my MATLAB function "myfun.m" using the following command:
mcc -m -v myfun.m -d 'C:\work\myDir'
However, I receive the following error message:
??? Error using ==> mcc
The output directory,
'C:\work\myDir'
does not exist.
I would like the MCC command to create the output directory if it currently does not exist instead of generating this error message. This is would be very useful for me because my workflow requires me to compile the standalone application at the end of every day incorporating any changes made to my function and place the output in a folder whose name contains a datestamp.
This would also be a good feature to have when compiling project files created using DEPLOYTOOL using the following command:
mcc -F myApp.prj
Currently, I have to manually create the "src" and "distrib" directories to ensure that there is no error.
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!