MATLAB Compiler (R2010a) issue

Hi there,
I was trying mex program.cpp.
It showed an error Error: Could not detect a compiler on local system which can compile the specified input file(s)
Then I tried mex -setup
It did not list any compilers (Only none)
I did install Windows SDK 7.1 successfully (also has MS VC++ 2010 x64 redistributable)
I have lcc 32 bit in my system
Even then compiler list is shown [0] none
Any thoughts
I just wanted to run mex program.cpp

3 件のコメント

Walter Roberson
Walter Roberson 2015 年 10 月 13 日
Are you using 32 bit MATLAB or 64 bit MATLAB?
Madhu Kodappully
Madhu Kodappully 2015 年 10 月 13 日
64 bit
Madhu Kodappully
Madhu Kodappully 2015 年 10 月 13 日
編集済み: Madhu Kodappully 2015 年 10 月 13 日
I ran the cpp file in a different system (mex program.cpp)
Obtained the mex file
placed in the system that has 2010a
works very nicely now.

サインインしてコメントする。

回答 (2 件)

Walter Roberson
Walter Roberson 2015 年 10 月 13 日

0 投票

sdk 7.1 is not support for MATLAB R2010a. You need to install one of the compilers listed at http://www.mathworks.com/support/compilers/R2010a/win64.html or http://www.mathworks.com/support/compilers/R2010a/win32.html
lcc is only for 32 bit compiling, and would not be detected if you are using the 64 bit version of MATLAB.
A Redistributable is not a compiler.

3 件のコメント

Madhu Kodappully
Madhu Kodappully 2015 年 10 月 13 日
Thanks for your reply. Let me try that.
Madhu Kodappully
Madhu Kodappully 2015 年 10 月 13 日
編集済み: Madhu Kodappully 2015 年 10 月 13 日
Is it possible (as per the copy right act) to attach a one of these compilers to this query? I am not sure all my installations are 2 MB and they do not leave me to the right answer
Walter Roberson
Walter Roberson 2015 年 10 月 13 日
The visual Studio express link on Microsoft is to a program that downloads the required files, but I do not know if you can get the 2010 that way.
Look on stackoverflow.com/questions/8119698/visual-c-sharp-2010-express-full-download for a link to a iso for the full package.

サインインしてコメントする。

Sehrish
Sehrish 2024 年 4 月 25 日

0 投票

yes

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

質問済み:

2015 年 10 月 13 日

回答済み:

2024 年 4 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by