User`s guide
Troubleshooting
4-29
launches a new C shell to perform compilations, it executes the .cshrc script.
If this script causes unexpected changes to the
PATH environment variable, an
error may occur. You can t est this by performing a
set SHELL=/bin/sh
prior to launching MATLAB. If this works correctly, then you should check
your
.cshrc file for problems setting the PATH environment variable.
Cannot Locate Your Compiler (PC). If mbuild has difficulty loc ating your ins talled
compilers, it i s us eful to know how it goes about finding compilers.
mbuild
automatically detects your installed compilers by first searching for locations
specified in the follo w ing environment va riables:
•
BORLAND for Borland C/C++, Version 5.0, 5.2, or 5.3
•
MSVCDIR for Microsoft Visual C/C++, Version 5.0 or 6.0
Next,
mbuild searches the Windows registry for compiler entries.
Internal Error When Using mbuild -setup (PC). Some antivirus software packages
such as Cheyenne AntiVirus and Dr. Solomon may conflict with the
mbuild
-setup
process. If you get an error message during mbuild -setup of the
following form
mex.bat: internal error in sub get_compiler_info(): don't
recognize <string>
then you need to disable your antivirus software temporarily and rerun
mbuild -setup. After you have successfully run the setup option, you can
re-enable your antivirus software.
Verification of mbuild Fails. If none of the previous solutions addresses your
difficulty with
mbuild, contact Technical Support at The MathWorks at
support@mathworks.com.
Troubleshooting the Compiler
Typically, problems that occur when building stand-alone C and C++
applicationsinvolve
mbuild. However,itispossiblethatyoumay runintosome
difficultywiththeMATLABCompiler.One problemthatmight occurwhen you
try to generate a stand-alone application involves licensing.