Compiling Matlab code for deployment

When compiling a matlab project for deployment I recieve the following error message. I am using Matlab 64 bit version and I have Visual studion Express 2009 32 bit version compiler.
Could this be a result of 32 and 64 bit compiler interoperability issues?
Appreciate any advise on resolving this!!!
------------------------------------------------------------------
Warning: The -outdir switch requires the mbuild options file to define
NAME_OBJECT. Make sure you are using the latest version of
your compiler's mbuildopts file.
Error: An options file for MBUILD was found, but the value for 'COMPILER'
was not set. This could mean that the value is not specified
within the options file, or it could mean that there is a
syntax error within the file.
C:\PROGRA~1\MATLAB\R2009B\BIN\MEX.PL: Error: Options file is invalid.
Error: An error occurred while shelling out to mbuild (error code = 255).
Unable to build executable.
-----------------------------------------------------------------

回答(2 个)

Walter Roberson
Walter Roberson 2011-5-26
What you want to do is "not strictly supported" in your release. The description of how to do it is here
Kaustubha Govind
Kaustubha Govind 2011-5-26
Even though the default installation of Visual Studio (on 64-bit machines) installs only 32-bit compilers, you can choose specifically to also install the x64 compilers during installation. See Technical Solution# 1-6IJJ3L for instructions.
Also ensure that the version of your compiler is compatible with your version of MATLAB (list for R2011a is here).

类别

帮助中心File Exchange 中查找有关 MATLAB Compiler 的更多信息

提问:

2011-5-26

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by