Mcc command is not showing any C compiler

1 view (last 30 days)
Sarah Ghosh
Sarah Ghosh on 21 Jul 2013
I need to convert a MATLAB code (written in GUI) to C. For that, I have to use mcc command. But my MATLAB is not showing any available C compiler...
Select Compiler [0]None
I already have Microsoft Visual C (2010) but it is not identifying it. What might the problem be?
Also, can anyone please give me the link of any website from which to download any C compiler.
Thanks for any help.

Answers (2)

Azzi Abdelmalek
Azzi Abdelmalek on 21 Jul 2013
If your os is 64 bit, you should choose your compiler by
mex -setup
  2 Comments
Jan
Jan on 21 Jul 2013
And if you have a 32 bit machine, this command is required also. But as we can see from the question, Sarah must have started mex -setup already, because we see a part of the output of this command.
Kaustubha Govind
Kaustubha Govind on 22 Jul 2013
To use mcc, I think you need mbuild -setup.

Sign in to comment.


Jan
Jan on 21 Jul 2013
Your Matlab version matters, so please provide this detail. Either one of these pages will tell you which compilers are compatible:
You find the links to the compiler manufacturers there also.
Links to "any websites", from which compilers can be downloaded, can be found by Google. Better ask this service directly instead of letting us copy the list of links we found there.
  1 Comment
Sarah Ghosh
Sarah Ghosh on 22 Jul 2013
I use R2009b version of MATLAB. I installed all the software from this website http://www.mathworks.in/support/solutions/en/data/1-6IJJ3L/?solution=1-6IJJ3L
but MATLAB is still showing the error that compiler not found, the ones that
*************************************************************************** Error: Could not find the 64-bit compiler. This may indicate that the "X64 Compilers and Tools" or the Microsoft Windows Software Development Kit (SDK) is not installed. To build 64-bit binaries, Microsoft Visual C++ 2008 Express Edition requires that these two packages be properly installed. ***************************************************************************
*************************************************************************** Error: Could not find the Microsoft Windows Software Development Kit (SDK). This may indicate that the Microsoft Windows SDK or the "X64 Compilers and Tools" is not installed. To build 64-bit binaries, Microsoft Visual C++ 2008 Express Edition requires that these two packages be properly installed. ***************************************************************************
I had installed the visual C compilers as mentioned in the instructions. But still the error is coming.

Sign in to comment.

Categories

Find more on C Shared Library Integration 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!