User`s guide
5 Compiler Commands
..\myProgram.exe
you may see the error:
Cannot find the directory containing the 'myProgram' compon ent,
which is required by this application. Make sure the directory
containing 'myProgram. ctf' is on your dynamic load library path
(PATH on Windows, or LD_LIBRARY_PATH on Linux, for example), or
your application search path (PATH on both Windows and Linux).
Error initializing CTF Archive.
Compiling a GUI That Contains an ActiveX Control
When you save a GU I that contains ActiveX components, GUIDE creates a
file in the current directory for each such component. The filename consists
of the name of the GUI followed by an underscore (
_)andactivexn,where
n is a sequence number. For example, if the GUI is named ActiveXcontrol
then the filename would be ActiveXcontrol_activex1. The filename does
not have an extension.
If you use M ATLAB Compiler
mcc command to compile a GUIDE-created GUI
that contains an ActiveX component, you must use the
-a option to add the
ActiveX control files that GUID E saved in the current directory to the C TF
archive. Your command should be similar to
mcc -m mygui -a mygui_activex1
where mygui_activex1 isthenameofthefile.Ifyouhavemorethanonesuch
file, use a separate
-a option for each file.
Debugging MATLAB Compiler Generated Executables
As of MATLAB Compile r 4, it is no longer possible to debug your entire
program using a C/C++ debugger; most of the application is M-code, which can
only be debugged in MATLAB. Instead, run your code in M ATLAB and verify
that it produces the desired re sults. Then you can compile it. The compiled
code will pr od uce the same results.
5-24