Change the default mex compiler with a GUI / script
Show older comments
Hi, I'm building a gui and I want to be able to select the default mex compiler. I'm running Matlab R2013a. When I execute
mex -setup
I get
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/R2013a/win32.html
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[1] Lcc-win32 C 2.4.1 in \\[...]\APPS\Matlab\R2013A~1.10\sys\lcc
[2] Microsoft Software Development Kit (SDK) 7.1 in c:\Program Files (x86)\Microsoft Visual Studio 10.0
[0] None
Compiler: 2
Please verify your choices:
Compiler: Microsoft Software Development Kit (SDK) 7.1
Location: c:\Program Files (x86)\Microsoft Visual Studio 10.0
Are these correct [y]/n? y
Is it possible to change the compiler without having to access the Command Window? One option would be to first check for installed compilers, display them in a text and then select one.
The only problem I have is to get the available compilers to a set of strings and then change the compiler by a script.
so fare i have tried
my_var = evalc('mex -setup') %no response
my_var = eval('mex -setup') %Error using eval. Undefined function or variable 'setup'.
I really don't know how to continue.
Thank you for your help.
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!