Filter löschen
Filter löschen

Problem using C-compiler in MATLAB. How can I setup my compiler?

1 Ansicht (letzte 30 Tage)
Cedric Malvache
Cedric Malvache am 7 Mai 2014
Kommentiert: Mandakini Jain am 23 Apr. 2016
I recently started to work with MATLAB and I wanted to run a pre-programmed code developed by a colleague. The code makes use of C-code, so I downloaded Microsoft Visual Studio Express 2013 for Windows Desktop.
Instructions of what to do in README.txt.
What I did: I started MATLAB and since the code did not worked, I tried to setup mex. But this gave the following error (see also error.pdf in attachment in attachment): Error using mex No supported compiler or SDK was found. For options, visit http://www.mathworks.com/support/compilers/R2014a/win64.
The code I need to run can also be found in attachment.
How can I resolve these problems?
Many thanks in advance!

Antworten (1)

Tushar Sinha
Tushar Sinha am 17 Jun. 2014
From the error message it seems that the C compiler is not setup.
Refer to the "Supported and Compatible Compilers" link below for an information about the supported compilers with "MATLAB R2014a":
In case you decide to install the SDK 7.1 which is available at no charge, refer to the documentation below for installation of "Microsoft Windows SDK 7.1"
There is an existing issue with the installation of SDK 7.1, so, in case you see installation failed message, refer to the link below for troubleshooting the issue:
Once, it is installed successfully,restart MATLAB and run the following MATLAB command
>>mex -setup
This should show up the C compiler.
  2 Kommentare
Hugo Latapie
Hugo Latapie am 18 Jul. 2014
Installing Microsoft Windows SDK 7.1 on Windows 8.1 is not recommended by Microsoft and may destabilize your system. You will need to uninstall updated code as discussed in the "Troubleshooting SDK installation" link above. Even the SDK 7.1 installer has some serious issues running on modern computers. I tried installing 7.1 on a surface pro 3 and the installer failed because apparently my screen resolution was "800X600 or less" while in fact it's 2160X1440.
Looking into getting visual studio 2013 express to work via some configuration tweaking.
Mandakini Jain
Mandakini Jain am 23 Apr. 2016
Did you end up figuring out a solution for this? Running into this problem now.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by