Why do I get the MEX.PL: Error when set a compiler with mex -setup?

3 views (last 30 days)
I would like to set up a compiler. However, I got the following error:
\matlabroot\\BIN\MEX.PL: Error: No file names given when setting up the compiler even if MEX.PL exists in \matlabroot\\BIN.

Answers (1)

Sanchali Purandare
Sanchali Purandare on 16 Jan 2011
There should be a space between mex and -setup like mex -setup. If there is another special character between mex and setup without a space, the same error is occured.
For example,
mex/setup
Usage:
MEX [option1 ... optionN] sourcefile1 [... sourcefileN]
[objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]
or (to build an Ada S-function):
MEX [-v] [-g] -ada .ads
Use the -help option for more information, or consult the MATLAB API Guide.
\matlabroot\BIN\MEX.PL: Error: No file names given.

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!