2017-03-02 4 views
2

mit Matlab 2013B, lief ich den Befehl mex -setup und ich bekomme das Ergebnis:Wie finden Sie Compiler für Mex in Matlab 2016a?

>> mex -setup 

Welcome to mex -setup. This utility will help you set up 
a default compiler. For a list of supported compilers, see 
http://www.mathworks.com/support/compilers/R2013b/win64.html 

Please choose your compiler for building MEX-files: 

Would you like mex to locate installed compilers [y]/n? n 

Mein Problem ist, dass unter Matlab2016a ich diese Nachricht nicht sehen kann - ich nur folgendes Ergebnis:

>> mex -setup 
MEX configured to use 'Microsoft Visual C++ 2012 (C)' for C language compilation. 
Warning: The MATLAB C and Fortran API has changed to support MATLAB 
    variables with more than 2^32-1 elements. In the near future 
    you will be required to update your code to utilize the 
    new API. You can find more information about this at: 
    http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html. 

To choose a different language, select one from the following: 
mex -setup C++ 
mex -setup FORTRAN 

Bitte, wie ich die Nachricht

"Welcome to mex -setup. This utility will help you set up etc"

Vielen Dank sehen konnte.

+0

Weil es bereits konfiguriert ist. Die zweite Nachricht sagt Ihnen "Hey, nichts anderes zu tun, hier ist es bereits konfiguriert für" "Microsoft Visual C++ 2012 (C)" –

+0

Vielen Dank für Ihre Hilfe. Ich möchte den Compiler ändern, nämlich ich möchte den intel C++ Compiler verwenden. Wie könnte ich das tun? –

+0

[Gemäß der Dokumentation] (https://uk.mathworks.com/help/matlab/matlab_external/changing-default-compiler.html), wenn [ein unterstützter Compiler] (https: //uk.mathworks. com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/SystemRequirements-Release2013b_SupportedCompilers.pdf), erscheint es, wenn Sie 'mex -setup C++' eingeben –

Antwort

1

Vom MATLAB documentation:

Um den Standard-C++ Compiler, Typ zu ändern:

mex -setup cpp 

Auf diese Weise können auf verschiedene Compiler ändern können, wenn Sie sie haben. Der Aufruf von setzt den C-Compiler, der anders sein kann.