Re: Invalid MEX-file error while converting .m file to .exe
- From: arunpowar7157@xxxxxxxxx
- Date: Tue, 1 Jul 2008 01:08:11 -0700 (PDT)
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
.
- Prev by Date: Re: Change the values of constant blocks from within a simulink model
- Next by Date: Re: Callbacks
- Previous by thread: Re: Change the values of constant blocks from within a simulink model
- Next by thread: implicit math function
- Index(es):
Relevant Pages
|
Loading