Moving Matlab application from 32 bit to 64 bit
Show older comments
I have been using Matlab 7.1 with Microsoft Visual Studio on a 32 bit Windows 2003 server. Now, I'm trying to move all my applications to a 64 bit 2008 server. I installed Matlab 7.7 along with Visual C++ 2005 since this link suggests that these versions are compatible - https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/SystemRequirements-Release2008b_SupportedCompilers.pdf.
When I type "mbuild -setup" in 64 bit Matlab 7.7, it does not detect any compilers. When I type the same command in my 32 bit Matlab 7.1, it detects two compilers - Microsoft Visual Studio and the Lcc compiler in Matlab folder.
Do I need to do something else to make this system work in 64 bit?
Answers (1)
Faiz Gouri
on 27 Feb 2017
0 votes
Most possible reason for this behavior is that the PATH is not set for the new compiler or it is added behind a 32-bit compiler. After installing a compatible 64-bit compiler in the target machine, it has to be set in the PATH system environmental variable in order to be picked up by MATLAB. MATLAB picks up the first compiler in the PATH, so make sure it is added on top of the list of paths in PATH.
7 Comments
Jan
on 27 Feb 2017
@Kriti: In the PDF you have linked you can find:
6. Microsoft Visual C++ 2005 Express Edition requires the Microsoft Platform SDK for Windows Server 2003, and requires the MSSdk variable to be defined in the Windows environment when used with MATLAB and related products. The value of this environment variable is the path to the installation directory of the SDK. This environment variable is not usually defined by the Microsoft Platform SDK installation program.
Kriti Kapoor
on 27 Feb 2017
Edited: Walter Roberson
on 27 Feb 2017
Walter Roberson
on 27 Feb 2017
Visual C++ 2005 Express Edition is also a C compiler.
Kriti Kapoor
on 27 Feb 2017
Walter Roberson
on 28 Feb 2017
The Redistributable is not a compiler, only the run-time for things that were compiled with the compiler.
You are trying to install for 64 bit MATLAB. VC++ 2005 Express was supported for 32 bit MATLAB, but not for 64 bit MATLAB: for 64 bit MATLAB to use the MATLAB Compiler or MATLAB Builder NET products, it was VC++ 2005 Professional, or VC++ 2008 Professional, or SDK 7.1 (VC++ 2008 Express could not be used for MATLAB Compiler or MATLAB Builder NE.)
I suggest you install SDK 7.1. If you are using MATLAB Builder NE make sure that .NET Framework 2.0 is also installed.
If you have difficulty after installing SDK 7.1, then note: http://www.mathworks.com/help/releases/R2008b/toolbox/compiler/index.html?/help/releases/R2008b/toolbox/compiler/brtm1xm-6.html
"Cannot Locate Your Compiler (Windows). If mbuild has difficulty locating your installed compilers, it is useful to know how it finds compilers. mbuild automatically detects your installed compilers by first searching for locations specified in the following environment variables:
MSVCDIR for Microsoft Visual C++, Version 6.0, 7.1, or 8.0
Next, mbuild searches the Windows registry for compiler entries."
Kriti Kapoor
on 29 Mar 2017
Walter Roberson
on 29 Mar 2017
Sorry, I do not know.
Categories
Find more on C Shared Library Integration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!