Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

compiling c-code in the windows 8 environment

조회 수: 1 (최근 30일)
Chad
Chad 2013년 9월 23일
마감: MATLAB Answer Bot 2021년 8월 20일
I have some c/c++ code that I previously had working using mexfunctions on a mac. I have since switched to a windows 8 operating system and can no longer compile with mex functions. I have downloaded visual basic professional 2013 but still get the error "No supported SDK or compiler was found on this computer." Does anyone know how to resolve this issue? I also tried downloading the free software Microsoft Windows SDK 7.1 but the installer failed (maybe because I am on windows 8?).

답변 (2개)

Harsheel
Harsheel 2013년 9월 23일
Although Win SDK 7.1 is officially unsupported on Win 8, I have seen people successfully installing it and using it in MATLAB. Before installing the SDK, make sure you've removed the following two entities from your machine, if present:
  • Microsoft Visual C++ 2010 x86 Redistributable
  • Microsoft Visual C++ 2010 x64 Redistributable
After doing so, follow the steps mentioned below to install the SDK:
If the above doesn't resolve your issue, paste any error messages you may receive.
Also, visual basic professional 2013 is an unsupported compiler (source: Supported_Compilers_List)

lithika
lithika 2013년 12월 27일
If u r not able to solve the issue using the previously told method, Follow this...this might help u.. Step 1: Install microsoft SDK 7.1 in compatibility mode as told below (a)after the required file is downloaded from net, right click on the driver and select properties (b)select the compatibility tab,click the compatibility mode check box to select it (C)select the previous version of ur OS(i did as windows XP,SP2) (d)click OK now try to install the setup..
Now building the mex-files in matlab environment..... After installing microsoft SDK 7.1, in matlab 2012a (if u r using it) type "mex -setup" in the command window. list of the installed compiler will b displayed and select microsoft SDK 7.1 from the list..
Thats all.. U can use the C/C++ files,Mex files...

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by