Mana V
Mana V

Reputation: 77

MATLAB how to change default compiler?

I am working with MATLAB R2015b and trying to use MEX files. When I type the commad line "mex - setup", MATLAB returns me "MEX configured to use 'Microsoft Windows SDK 7.1(C)' for C language compilation". However, to change this default compiler to work with Microsoft Visual Studio Community. How can I change the default compiler of MATLAB?

Upvotes: 0

Views: 1743

Answers (1)

Ander Biguri
Ander Biguri

Reputation: 35525

mex -setup lets you choose the compiler over the installed supported compilers you have.

Obviously the compiler needs to be installed , and needs to be one of the following : https://uk.mathworks.com/support/compilers/R2015b/index.html .

"Microsoft Visual Studio Community" does not appear to be on the list.

Upvotes: 2

Related Questions