MATLAB COMPILER RELEASE NOTES User's Guide Page 56

  • Download
  • Add to my manuals
  • Print
  • Page
    / 264
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 55
2 Installation and Configuration
2-26
Troubleshooting
This section identifies some of the more common problems that can occurwhen
installing and configuring the MATLAB Compiler.
mex Troubleshooting
Out of Environment Space Running mex or mbuild. On Windows 95 and Windows 98
systems, the
mex and mbuild scripts require more than the default amount of
environment space. If you get the error,
out of environment space,addthis
linetoyour
config.sys file.
shell=c:\command.com /e:32768 /p
Non-ANSI C Compiler on UNIX. A common configuration problem in creating C
MEX-files on UNIX involves using a non-ANSI C compiler. You must use an
ANSI C compiler.
DLLs Not on Path on Windows. MATLAB will fail to load MEX-f ilesifitcannotfind
all DL Ls refere nce d by the MEX-file; the DLLs must be on the DOS path or i n
the same directo ry as the MEX-file . This is als o true for third-party DLLs.
Segmentation Violation or Bus Error. If your MEX-file causes a segmentation
viola tio n or bus error , there is mo st likel y a problem w ith the MA TLAB
Compiler. Contact Technical Support at The MathWorks
(
Generates Wrong Answers. If your program generates the wrong answer(s),there
are several possible causes. There could be an error in the computational logic
or there may be a defect in the MATLAB Compiler. Run your original M-file
with a set of sample data and record the results. Then run the associated
MEX-file with the sample data and compare the results with those from the
original M-file. If the results are the same,there may be a logic problem in your
original M-file. If the results differ, there may be a defect in the MATLAB
Compiler. In this case, send the pertinent information via e-mail to
mex Works from Shell But Not from MATLAB (UNIX). If the command
mex -x yprime.c
Page view 55
1 2 ... 51 52 53 54 55 56 57 58 59 60 61 ... 263 264

Comments to this Manuals

No comments