How to get the current configured mbuild compiler?

5 views (last 30 days)
Hi all,
I run the mcc from command line to create a dll-file.
To ensure the mbuild compiler is set up well on the current computer, I want to verify this.
For mex, there is a way to get the compiler configuration using
mex.getCompilerConfigurations
Is there a (similar) way for mbuild to get the current configured compiler?
Thanks in advance!

Accepted Answer

mhahl
mhahl on 12 Sep 2014
There is the possibility to check the configuration file
fullfile(prefdir,'compopts.bat')
on the 2nd line to contain the configured compiler or if the file exists at all.
Expected compilers and their names are:
lcc - for the LCC compiler msvc60 - for Microsoft Visual C++ 6.0 Professional msvc80 - for Microsoft Visual C++ 2005 Professional msvc90 - for Microsoft Visual C++ 2008 Professional msvc100 - for Microsoft Visual C++ 2010 Professional mssdk71 - for Microsoft Windows SDK 7.1

More Answers (0)

Categories

Find more on C Shared Library Integration in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!