Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

compiling c-code in the windows 8 environment

3 Ansichten (letzte 30 Tage)
Chad
Chad am 23 Sep. 2013
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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?).

Antworten (2)

Harsheel
Harsheel am 23 Sep. 2013
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 am 27 Dez. 2013
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...

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by