problem using mex -setup

Hii
I am trying to use libsvm for which i have to associate C/C++ file with matlab and following is the procedure:
Step 1: matlab>> mex -setup
(ps: MATLAB will show the following messages to setup default compiler.)
Step 2: Would you like mex to locate installed compilers [y]/n? y
Step 3: Select a compiler:
[1] Microsoft Visual C/C++ version 7.1 in C:\Program Files\Microsoft Visual Studio
[0] None
Following the steps above, i.e., 1 and 2 worked fine however, in step 3 which shows a list of compiler, only 1 option is available i.e., [0] which is problematic for me as i want option [1], to follow the further steps of installing LibSVM.
Any help in this regard how to get option [1] in step 3.
I am really thankful to you for your time.
Thanks.

4 件のコメント

James Tursa
James Tursa 2012 年 2 月 26 日
Are you on a 64-bit system?
Dyno
Dyno 2012 年 2 月 26 日
yeah its windows 7 home premium 64 bit operating system....and the matlab version is 2009b......thanks for your concern!!
Gilmore
Gilmore 2013 年 2 月 22 日
Did you solv it please???
cmcm
cmcm 2013 年 3 月 13 日
i also have the same problem ... did any one solve that ?

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

回答 (2 件)

Jan
Jan 2012 年 2 月 26 日

0 投票

Have you installed a compiler already? And on Windows you need the Windows SDK also. Please post your operating sdystem and Matlab version, if you need more explicite details.

3 件のコメント

Dyno
Dyno 2012 年 2 月 26 日
yeah now i have installed a compiler microsoft visual C++ express 9 edition but its showing the following error:
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 EX-files Microsoft Visual C++ 2008 Express Edition requires that these two packages are installed properly.
any suggestions....thanks for your help
Jan
Jan 2012 年 2 月 26 日
See: http://www.mathworks.com/support/compilers/release2009a/win64.html , especially follow the link to http://www.mathworks.com/support/solutions/en/data/1-6IJJ3L/?solution=1-6IJJ3L .
Btw, you find this page, when you ask Google for "Matlab 2009a compiler" as the first answer.
Dyno
Dyno 2012 年 2 月 27 日
thanks a lot sir.....it seems to work now!!

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

Gilmore
Gilmore 2013 年 2 月 22 日

0 投票

Hello Experts,
Please find a 2 screenshots attached about my current issue. I need to compile the schematic so that i can connect to my microcontroller. First the problem was that the 64-bit matlab did not have the right compiler, therefore following instructions i installed the SDK 7.1. After installing it i tried to compile the simulink model again, but still having issues as shown in the images.
Your help is greatly appreciated.
Links:

1 件のコメント

Jan
Jan 2013 年 2 月 23 日
編集済み: Jan 2013 年 2 月 23 日
Please do not highjack a question by appending another question in the answers section. This is confusing, because it is not clear if following answers concern your question or the original one. And the mechanism to accept an answer gets meaningless also.
Please delete this "answer", Gilmore.

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

カテゴリ

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

タグ

質問済み:

2012 年 2 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by