User`s guide

8 Troubleshooting
To verify tha t the MCR is prop erly loca ted on your path, from a development
Windows machine, confirm that
matlabroot\bin\win32,wherematlabroot
is your root MATLAB directory, appears on your system path ahead o f a ny
other MATLAB insta llations.
From a Windows target machine, verify that
<mcr_root>\<ver>\run
time\win32
,where<mcr_root> is your root MCR directory, appears on your
system path. To v erify that the CTF file that M ATLAB Compiler generated in
the build process re sides in the same directory as your program’s file, look at
the directory containing the program’s file and make sure the corresponding
.ctf file is also there.
UnabletoRunMCRInstaller.exeonaTargetWindowsMachine. If
you receive the message
This advertised application would not be installed because it
might be Unsafe. Contact your administrator to change the
installation user interface option of the package to basic.
when you try to install the M ATLAB Component Runtime (MCR) using
MCRInstaller.exe on a Windows machine, you n ee d to log in as an
administrator. If this is not possible and you have no objection to installing the
MCR in the default location, try the following command from a DOS window:
msiexec /qb /I MCRInstaller.msi
MCRInstaller.msi
should have been placed in the ins tallation directory after
your first attempt to install the MCR. This command will start the installer
using the ba sic UI configuration, wh ich will execute a t a low er security level.
warning LNK4248: unresolved typeref token (01 000028 ) for
’mxArray_tag’; image may not run test3.obj. If you receive this
message while compiling an MSVC application that calls a MATLAB
Compiler generated shared library, you can safely ignore it. The message is
due to changes in Visual C/C++ 2005 compiler and will not interfere with
successful running of your application. If you desire, you can suppress the
message by including an empty definition for
mxArray_tag inside your .cpp
file (test3.cpp , in this case). For example, if you add the line:
struct mxArray_tag {};
8-6