User`s guide
1 Introducing the MATLAB Compiler
1-20
Fixing Callback Problems: Missing Functions
When the Compiler creates a stand-alone application, it compiles the M-file
you specify on the command line and, in addition, it compiles any other M-files
that your M-file calls. If your application includes a call to a function in a
callback string or in a string passed as an argument to the
feval function or
an ODE solver, and this is the only place in your M-file this function is called,
the Compiler will not compile the function. The Compiler does not look in these
text strings for the names of functions to compile.
Symptom
Your application runs, but an interactive user interface element, such as a
push button, is unresponsive. When you close the application, the graphics
library issues this error message.
An error occurred in the callback : change_colormap
The error message caught was : Reference to unknown function
change_colormap from FEVAL in stand-alone mode.
Workaround
To eliminate this error, create a list of all the functions that are specified only
in callback strings and pass this list to the
%#function pragma. (See “Finding
Missing Functions in an M-File” on page 1-21 for hints about finding functions
javaMethod javaObject keyboard linmod
lookfor macprint mactools methods
mislocked mlock more munlock
new_system open_system pack pfile
rehash runtime set_param sim
simget simset sldebug str2func
superiorto system_dependent trmginput type
vms what which who
whos
Table 1-2: Unsupported Functions in Stand-Alone Mode (Continued)