DSPRelated.com
Forums

Matlab Compiler Questions

Started by gt0398b August 2, 2002
I am running MATLAB R12.1. I'm having trouble with compiling. I
would appreciate any help anyone can give.

1. When I do the "mbuild -setup" or "mex -setup" it is not giving me
an option for my C++ compiler. I have Visual C++.NET, the newest
version of visual C++. The most recent option in the matlab "mbuild -
setup" menu is Visual C++ version 6. However, when I let it search
for a compiler, it comes up with "[1] Lcc C version 2.4 in
C:\MATLAB6P1\sys\lcc" Using this, I have been able to compile the
sample files in $MATLAB\extern\examples\ into C code (-m option) but
not into C++ (-p option). How do I use my Visual C++.NET compiler
with the Matlab Compiler? If I pick Vis C++ version 6 and give it
the root folder for Vis C++.Net, it gives back errors.

2. Even using the "[1] Lcc C version 2.4 in C:\MATLAB6P1\sys\lcc"
compiler, I cannot get Matlab to compile a needed file. I'm not sure
if it is because I load data sets in the M-file (I know that there
are some issues here, I have tried loading data a few different
ways). The M-file is attached below in case I am doing something the
compiler doesn't support or I need to load the data another way for
the compiler. The section set off by about 4 lines is a seperate
pasted M-file so that the program doesn't have to call it from
another directory. With the variables width and band set low like
around 10 (the first lines of code), the program runs fine (debugged
and working correctly). However, I need width and band set to 1000
which Matlab crashes on because of computation time. Is there
something in the M-file that the compiler doesn't support? I don't
use eval in it or the other do not's listed on the Mathworks
website.