Errors in creating a standalone .exe file from .m file.

I used "mcc -m myfilename" command to create .exe file from .m file. This didn't create .exe file but generate an error message saying "Undefined function 'mcc' for input arguments of type 'char'.". Does anyone know how to fix this problem?
Matlab R2011b (7.13.0.564) is installed in my computer, and "mex -setup" command locate one compiler, Lcc-win32 C 2.4.1.

Answers (1)

Hi,
the error tells you that the MATLAB compiler is not installed. Type
ver
to see what is installed. mex is something different ...
Titus

4 Comments

Hi,
When I typed "ver", Matlab Version, License Number, and Operating System information showed up with the Java VM Version below:
Java VM Version: Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode.
Does this mean that the MATLAB compiler is not installed?
After the Java version should come something like
------------------------------
MATLAB Version 7.x (R200xa)
and if there is no line
MATLAB Compiler Version 4.x (R200xa)
then it is not installed.
Titus
Unless of course you are running a "b" release ...
MATLAB Compiler Version 4.x (R200xb)
Yes, or some older version like
MATLAB Compiler Version 3.x (R13)
;-)

Sign in to comment.

Categories

Asked:

on 7 Nov 2011

Community Treasure Hunt

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

Start Hunting!