How to call .c file from matlab script

I have a Matlab script which calls .c file using mex command
mex cSameGroup.c;
On running the script, I'm getting the following error message
Error using mex
No supported compiler or SDK was found. For options, visit
http://www.mathworks.com/support/compilers/R2015a/win64.html.
I tried using
mex -setup
but got same error. I'm using Matlab R2015a

댓글 수: 3

James Tursa
James Tursa 2017년 4월 14일
You need to install a supported compiler before you will be able to mex (i.e., compile) that cSameGroup.c file.
Atinesh Singh
Atinesh Singh 2017년 4월 14일
편집: Atinesh Singh 2017년 4월 14일
I have Code Blocks installed on my machine
James Tursa
James Tursa 2017년 4월 14일
The list on the provided link shows Microsoft SDK 7.1 or Visual C/C++ (various releases) are supported.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Troubleshooting in MATLAB Compiler SDK에 대해 자세히 알아보기

질문:

2017년 4월 14일

댓글:

2017년 4월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by