Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The Visual Studio 2012 Compiler Nov 2012 CTP is a separate executable, which is located at</p> <pre><code>C:\Program Files (x86)\Microsoft Visual C++ Compiler Nov 2012 CTP </code></pre> <p>The bin-subdirectory contains the cl.exe, which is the new compiler. A file with the same name exists at the Visual Studio 2012 installation directory. To make Matlab refer to the updated compiler, open (in a plain-text editor) the file</p> <pre><code>C:\Program Files\MATLAB\R2013a\bin\win64\mexopts\msvc110opts.bat </code></pre> <p>and add the following just before the compiler parameters:</p> <pre><code>rem Override the compiler selection. set COMPILERUPDATEDIR=C:\Program Files (x86)\Microsoft Visual C++ Compiler Nov 2012 CTP set PATH=%COMPILERUPDATEDIR%\bin\amd64;%COMPILERUPDATEDIR%\bin;%PATH% </code></pre> <p>This works since the cl.exe is searched from left to right in the PATH variable. </p> <h2>Local vs global options files</h2> <p>Note that the options-files in the mexopts directory are not directly used by Matlab; instead, they are taken local copies, and these are then used as the actual options files. When running</p> <pre><code>mex -setup </code></pre> <p>Matlab takes a local copy of the global options file, and places it in a directory which can be obtained by running mex with the -v option. This is the default options file. Therefore, if you are using the default options file, then you need to run mex -setup to see the changes.</p> <p>Alternatively, you may want to take a local copy of the global options file yourself, and then specify the options file by the -f option in mex. This way you don't need to modify the official options files.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload