Skip to Main Content Skip to Search
Accelerating the pace of engineering and science

 

Product Support

1601 - Release 12.0 & 12.1
Supported / Compatible Compilers for MATLAB 6.0 & 6.1


Microsoft Windows

UNIX

For information on other releases, please select from the choices below:


Microsoft Windows

MATLAB 6.1 (Release 12.1) and 6.0 (Release 12)

Microsoft Windows   MATLAB MATLAB Compiler C/C++ Math Library C/C++ Graphics Library MATLAB Excel Builder
Compiler Version Notes 6.0
2.1
2.1
2.1
 
6.1 2.2
2.3
2.2
2.3
2.2
2.3
1.0
Microsoft Visual C/C++ 6.0   x x x x x
5.0   x x x x x
Lcc - Win32 2.4   x x x x  
Borland C++ Builder 5 1 x x x x x
4 1 x x x x x
3 1 x x x x x
Borland C/C++ Compiler 5.5 1 , 4 , 8 x x x x  
5.2 1 , 3 , 8 x x x x  
5 1 , 8 x x x x  
Compaq Visual Fortran 6.6   x        
6.1   x        
Digital Visual Fortran 6.0 2 x        
5.0   x        
Watcom C/C++ 11.0   x        
10.6   x        

Simulink 4.1 and 4.0 and Related Products

Microsoft Windows   Simulink Stateflow RTW RTW Target xPC Target
Compiler Version Notes 4.0
4.0
4.0
2.0 1.1
4.1
4.1.1
4.1
4.2.1
4.1
4.1.1
2.1 1.2
Microsoft Visual C/C++ 6.0   x x x x x
5.0   x x x x x
Lcc - Win32 2.4   x x x x  
Borland C++ Builder 5 1 x x x    
4 1 x x x    
3 1 x x x    
Borland C/C++ Compiler 5.5 1 , 4 , 8 x x x    
5.2 1 , 3 , 8 x x x    
5 1 , 8 x x x    
Compaq Visual Fortran 6.6   x        
6.1   x        
Digital Visual Fortran 6.0 2 x        
5.0   x        
Watcom C/C++ 11.0   x x x x x
10.6   x x x x x

Notes for the MATLAB 6.0 & 6.1 Microsoft Windows Tables

Exception Handling

When using C++, the MATLAB Compiler relies on the availability of exception handling in the C++ language. Several of the supported compilers do not properly support C++ exception handling. Consequently, our support for exception handling is limited on those platforms.

1. Borland:

  • Borland C++ (all versions) has a restriction on support of goto statements within try / catch blocks. The MATLAB Compiler sometimes generates goto statements for complicated if conditional statements. The generated code for these will not compile in Borland C++; as a result you will be required to simplify the if condition.
  • The -A debugline option is implemented using try / catch statements. Therefore, use of this option is also restricted in the above C++ implementation.
  • Borland Compilers use MIDL compiler, which is distributed with Microsoft Compilers, to generate COM components. Thus, you will need to install the MIDL compiler separately. One way to do this is to install a standard version of Microsoft Visual Studio.

2. Digital Visual Fortran 6.0:

  • A number of users have reported problems with this version of Digital Visual Fortran. Although it is supported, we do not recommend using it.

3. The list that is generated when using the mex -setup and mbuild -setup commands refers to the Borland C/C++ 5.2 Compiler as Borland C/C++ 5.02.

4. The Borland C/C++ Compiler 5.5 is the Borland C/C++ Free Command Line Tools v5.5

5. The list that is generated when using the mex -setup and mbuild -setup commands refers to the LCC v2.4.1 Compiler as LCC C v2.4.

6. The list that is generated when using the mex -setup and mbuild -setup commands refers to the Microsoft Visual C/C++ .NET Compiler as Microsoft Visual C/C++ 7.0.

7. Only the Professional Edition of the Microsoft Visual C/C++ Compiler (Version 5.0, 6.0, or 7.0) is officially tested and supported by The MathWorks Products. In addition, customers have reported problems when using the Standard Edition with the Real-Time Workshop, the Real-Time Windows Target, and xPC Target. We recommend using the Professional Edition.

8. Borland Compilers use MIDL compiler, which is distributed with Microsoft Compilers, to generate COM components. Thus, you will need to install the MIDL compiler separately. On way to do this is to a standard version of Microsoft Visual Studio.


UNIX Workstations

  • You must have a native ANSI C compiler for your operating system.

  • The GNU C Compiler is NOT supported use with the MATLAB Compiler, the Math library, or the Graphics Library. The exceptions are LINUX and MAC because GNU C is the native compiler for these platforms.

  • The bundled C Compiler shipped with HP-UX is not supported because it is not ANSI C compliant. Use the ANSI C Compiler for HP-UX (refer to the Hewlett-Packard website for more information), or the GNU 3.0 C Compiler or higher.
  • The GNU C Compiler is supported for MEX, MATLAB Engine, and MAT Routines on all platforms.
  • The GNU C++ Compiler is supported only on Linux platforms. Note that the GNU C++ Compiler does not support C++ exception handling.
  • C++ MEX-files are only supported to the extent that the compiler supports C++ shared libraries.
  • C++ MEX-files are only supported for the version of the compiler that MATLAB was linked with.
  • Workshop Compiler 6.0 on Solaris is supported in MATLAB 6.5 (R13).
  • To determine what compiler you are using in UNIX machines, please visit Solution 27289.

C++ Compilers MATLAB 6.1 Built With: MATLAB 6.0 Built With:
Architecture C++ Compiler version
Dec/Compaq Alpha DIGITAL C++ V6.2-024 DIGITAL C++ V6.0-010
HP700 HP aC++ B3910B A.01.21 HP aC++ B3910B A.01.06
HPUX HP aC++ B3910B A.01.13
(for PA-RISC 2.0)
 
IBM RS6000 AIX Compilers V3.6.6.0 AIX Compilers V3.1
Linux gcc version 2.95.2 19991024 g++ version 2.95.2
SGI Base Compiler Development Environment, 7.3.1.2m Base Compiler Development Environment, 7.2.1
SGI64   Base Compiler Development Environment, 7.2.1
Solaris WorkShop Compilers 5.0 WorkShop Compilers 5.0