How do I determine the currently selected compiler before using the MEX command in MATLAB 7.0 (R14) and later?

5 次查看(过去 30 天)

采纳的回答

MathWorks Support Team
This enhancement has been incorporated in MATLAB 7.6 (R2008a). You can use the following command to get the currently selected compiler for MEX:
mex.getCompilerConfigurations
For more information on this topic, please visit the following website:
<http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/mex.getcompilerconfigurations.html>
For previous product releases, read below for any possible workarounds:
you can determine the currently selected compiler for MEX by viewing the following options files:
1. On Windows: mexopts.bat
2. On Linux/UNIX/Mac: mexopts.sh,
This is located in the preferences directory on your machine. The complete address of the preference directory can be obtained using the following command:
prefdir
To determine the currently selected compiler before using the MCC or the MBUILD command, open the following options files in the above directory:
1. On Windows: compopts.bat
2. On Linux/Unix/Mac: compopts.sh file
These option files contain the settings for the current compiler.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Troubleshooting in MATLAB Compiler SDK 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by