Re: Invalid MEX-file error while converting .m file to .exe



On May 30, 9:20 pm, "Priyanka " <priyanka2...@xxxxxxxxx> wrote:
Hi
I want to convert .m file to .exe file,the .exe file has
to be used in C/C++ program

mcc -o imROI1 -m ImROIdemo.m ,
mcc -m mymfunction.m
  i tried these command but it errors out saying

??? Invalid MEX-file 'C:\Program
Files\MATLAB\R2007a\toolbox\compiler\mcc.mexw32': The
specified module could not be found.

i tried with mex -setup
i have tried with Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\PROGRA~1\MATLAB\R2007a\sys\lcc
[2] Microsoft Visual C++ 6.0 in C:\Program Files\Microsoft
Visual Studio
but for all the compliers in the system which i choose it
errors out again.

i have even tried all options in this(http://engr.nmsu.edu/~etti/5_1/5_1f/5_1f.html) link, but
even then the same error

But i am able to convert .mdl files to c/ c++ files easily
from the help programs
Please can you advice, which complier should be used/
selected to get the mcc command working for converting .m
file to .exe file. If theres any easy way to convert .m
file to .exe. Please let me know

Thanks in advance
Priyanka


Hello Priyanka..
To convert .m to .exe,use the following command.. type this in matlab
command prompt
mcc -m mymfunction

this command will generate the mymfunction.exe
note: do not use clc command in any programs..
for any help, plz feel free to send -mail on my id:
arunpowar7157@xxxxxxxxx
-Arun Powar,
Scientist Engineer,
EST
.



Relevant Pages

  • Invalid MEX-file error while converting .m file to .exe
    ... but for all the compliers in the system which i choose it ... selected to get the mcc command working for converting .m ... file to .exe file. ...
    (comp.soft-sys.matlab)
  • Re: Codewarrior compiler command line???
    ... duplicate the command line for compile and link by telling it what ... I was wrong it is a .exe file. ... My liberal friends think I'm a conservative kook. ...
    (comp.arch.embedded)
  • Re: viewing and deleting hacker created dirs
    ... I'd try installing a shell such as cygwin and use the 'ls' command from ... I assume you've checked that the folder isn't simply marked as hidden or as ... Agustin Chernitsky wrote: ... I can't see the .exe file also... ...
    (microsoft.public.win2000.security)
  • Re: can not run regedit
    ... >>Command is not an exe file. ... >>>>Can't run applications ... >>> file name is the virus, the virus has set itself to ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: can not run regedit
    ... Command is a com file therefore anything you did to exe files wouldn't affect command.com. ... >>Command is not an exe file. ... >>>>Can't run applications ... >>> file name is the virus, the virus has set itself to ...
    (microsoft.public.windowsxp.perform_maintain)