Mcc command is not showing any C compiler

3 次查看(过去 30 天)
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.

回答(2 个)

Azzi Abdelmalek
Azzi Abdelmalek 2013-7-21
If your os is 64 bit, you should choose your compiler by
mex -setup
  2 个评论
Jan
Jan 2013-7-21
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 2013-7-22
To use mcc, I think you need mbuild -setup.

请先登录,再进行评论。


Jan
Jan 2013-7-21
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 个评论
Sarah Ghosh
Sarah Ghosh 2013-7-22
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 C Shared Library Integration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by