Why am I getting an "-F option" error when I compile a standard MATLAB command using MATLAB Compiler 4.1(R14SP1)?

2 views (last 30 days)
I am trying to compile the MATLAB command MEAN into a stand-alone application. I am using the following syntax in MATLAB 7.0.1 (R14SP1):
mcc -m mean.m
I receive the following error during compilation:
Error: The -F <file name> option must occur with no other options on the command line.
??? Error executing mcc, return status = 1.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
There is a bug in MATLAB Compiler 4.1 (R14SP1) that causes a compilation error when the Windows environment variables "TEMP" and "TMP" are set to directories that have spaces in the directory names (for example, C:\MY TEMP\ ).
To work around this issue, set the environment variables to a directory that does not have spaces.
1. Create a directory C:\TEMP\
2. Right-click on "My Computer" and choose "Properties"
3. Click on the "Advanced" Tab
4. Click on "Environment Variables"
5. Scroll down the list of "System Variables" and select TEMP
6. Click on "edit" and set the value to C:\TEMP\
7. Similarly set the TMP variable to C:\TEMP\
8. Restart Windows
This should resolve the error associated with the TEMP and/or TMP environment variable having spaces.

More Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products


Release

R14SP1

Community Treasure Hunt

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

Start Hunting!