User`s guide

4 Stand-Alone Applications
4-28
Troubleshooting
Troubleshooting mbuild
This section identifies some of the more common problems that might occur
when configuring
mbuild to create stand-alone applications.
Options File Not Writeable. Whenyourunmbuild -setup, mbuild makes acopyof
the appropriate options file andwrites some information to it. Iftheoptions file
is not writeable, you are asked if you want to overwrite the existing options file.
If you choose to do so, the existing options file is copied to a new location and a
new options file is created.
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
Directory or File Not Writeable.
If a destination directory or file is not writeable,
ensure that the permissions are properly set. In certain cases, make sure that
thefileisnotinuse.
mbuild Generates Errors. On UNIX, if you run mbuild filename and get errors, it
may be b ecause you are not using the proper options file. Run
mbuild -setup
to ensure proper compiler and linker settings.
Compiler and/or Linker Not Found. On PCs running Windows, if you get errors
such as
unrecognized command or file not found, make sure the command
line tools are installed and the path and othe r environment variables are set
correctly in the options file.
mbuild Not a Recognized Command. If mbuild is not recognized, verify that
<MATLAB>\bin is on your path. On UNIX, it may be necessary to rehash.
mbuild Works from Shell but Not from MATLAB (UNIX). If the command
mbuild ex1.c
works from the UNIX command prompt but does not work from the MATLAB
prompt, you may have a problem with your
.cshrc file. When MATLAB