C compiler for MATLAB in 64-bit windows

I have installed 64-bit MATLAB on my PC (Windows 7, 64-bit) and am trying to install a C compiler. I downloaded Windows SDK 7.1 and it reported as follows when I was trying to install:
Installation of the "Microsoft Windows SDK for Windows 7" product has reported the following error: Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information.
I tried all the solutions mentioned in the MSDN blog but none worked. Can anyone help? Or I think I have to turn to another compiler.
As lcc win32 has already been included in the 32-bit MATLAB, I wonder does the lcc win64 found on the website http://www.cs.virginia.edu/~lcc-win32/ also works fine with the 64-bit MATLAB?
Thanks guys.

 채택된 답변

Zhou
Zhou 2012년 2월 8일

1 개 추천

I have googled a lot and found that a newer version of VC++ 2010 Redistributable might prevent the Windows SDK 7.1 from successful installation.
Therefore I uninstalled my vc++ 2010, and then install the SDK 7.1, which works for me.
So, I would suggest anyone who want to install Windows SDK 7.1 first follow the nice MathWorks install guide here: <http://www.mathworks.com/support/solutions/en/data/1-FPLDGV/index.html?product=SL&solution=1-FPLDGV>
If failed PLEASE CHECK the SDK setup log file to find which components are failed to be installed. And try to uninstall your newer vc++ 2010 before the SDK installation.

추가 답변 (2개)

Friedrich
Friedrich 2012년 2월 8일

0 개 추천

Hi,
LCC64bit wont work (at least its not supported). Which compilers are supported can be found here:
Or for older Realeases:
So first of all: Does the ML version you are using support SDK 7.1? If yes, see this nice install guide from MathWorks:

댓글 수: 2

Zhou
Zhou 2012년 2월 8일
Hi Friedrich,
Thanks for your guide, that was nice, but not for me...
My MATLAB is R2011b, which requires SDK 7.1. I have followed the guide to install .NET framework 4, and when I tried to install the SDK 7.1, the installation failed with the following information:
A problem occurred while installing selected Windows SDK components.
Installation of the "Microsoft Windows SDK for Windows 7" product has reported the following error: Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information.
Please attempt to resolve the problem and then start Windows SDK setup again. If you continue to have problems with this issue, please visit the SDK team support page at http://go.microsoft.com/fwlink/?LinkId=130245.
Click the View Log button to review the installation log.
To exit, click Finish.
I have tried to delete the folder %TEMP%\sdksetup, tried the solutions listed in the MSDN blog, to reboot, reinstall .NET framework 4, but none of them worked, all I get is "installation failed". I wonder if anything is wrong with my win7.
Friedrich
Friedrich 2012년 2월 8일
Do you have admin privilegues? If so, can you run the install as admin (right click on it and select run as admin). If this doesnt help see here?
http://ctrlf5.net/?p=184

댓글을 달려면 로그인하십시오.

Andreas Goser
Andreas Goser 2012년 2월 8일

0 개 추천

The 64 Bit LCC is not supported for MATLAB on Win 64.
For your other issue, please provide the MATLAB Release information.

댓글 수: 1

Jan
Jan 2012년 2월 8일
The LCC compiler shipped with 32-bit versions is very old also. A modern version can be downloaded from the net, but the mexopts.bat file need some fine-tuning. E.g. RSP-files do not work.
Actually modern LCC versions are "not supported", but the old LCC2.4 has so many bugs (e.g. wrong results for 64 bit integers), that I do trust the unsupported version more than the supported one.
Nevertheless, the MSVC compilers are much more efficient and supported.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

2012년 2월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by