MATLAB Answers

1

Can I use the Visual C++ 2008 Redistributable Package instead of the 2005 version with MATLAB R2008a for my compiled stand-alone applications as it seems to be a newer version?

Asked by Sanchali Purandare on 16 Jan 2011
I would like to know if I can use the Visual C++ 2008 Redistributable Package instead of the 2005 version with MATLAB R2008a for my compiled stand-alone applications, as it seems to be a newer version.

  0 Comments

Sign in to comment.

2 Answers

Answer by Sanchali Purandare on 16 Jan 2011

All Microsoft runtime libraries belonging to the different Visual Studio versions such as 6.0, 2003 (.NET 1.x), 2003 (.NET 2.x), 2005 and 2008 are independent and incompatible with each other. See the Related Solution listed below for more information on which version of the Visual C++ Redistributable Package is needed for each MATLAB and/or MCR version. Since MATLAB 7.6 (R2008a) requires the Visual C++ 2005 SP1 Redistributable Package, installing the 2008 version or any other version will not be enough and will lead to errors such as "Side-by-Side configuration error".

  0 Comments

Sign in to comment.


Answer by Shaf
on 20 Jan 2011

If the standalone application is built using the Visual C++ 2008 compiler then the Visual C++ 2008 Redistributable package will need to be installed on the deployment machine in addition to the Visual C++ 2005 SP1 Redistributable Package. The redistributable(runtime) libraries can be loaded side by side in the same process. Since MATLAB 7.6(R2008a) is built with Microsoft® Visual C++ 2005 SP1 (8.0) Professional Edition the 2005 redistributable libraries are always required. However the MCR installation should take care of this. Other redistributable requirement will be dictated by the deployed component.

  0 Comments

Sign in to comment.