Problem with mex -setup

1 view (last 30 days)
Dan
Dan on 10 Feb 2014
Commented: Dan on 11 Feb 2014
This is the error message I get when running mex -setup:
??? Error using ==> mex at 208 Unable to complete successfully.
I have seen other people have problems at the same line, but they get other error messages explaining why it fails, but I just get this.
I am using R2011a x64 and have tried both VC++ 2010 Express with Microsoft SDK 7.1, and VC++ 2010 Professional, as per: http://www.mathworks.co.uk/support/compilers/R2011a/win64.html
I have tried automatically detecting compatible compilers and specifying the path manually with the same result.
I have tried uninstalling everything and reinstalling them as explained here: http://www.mathworks.com/matlabcentral/answers/96611 ...and I still get the same error.
I am running Windows 8.1 x64. The files that I am trying to compile with mex I am able to compile on Linux with no problems, but I need to be able to work on Windows.
Any help would be greatly appreciated :)
  5 Comments
Friedrich
Friedrich on 11 Feb 2014
with skelleton i mean
#include "mex.h"
void mexFunction( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
{
}
Assuming that code above is the content of test.c call mex like this
mex test.c -v
Dan
Dan on 11 Feb 2014
Have now downloaded R2013a and it seems to work, very strange but thanks for your help!
For the record, running this skeleton gave the same error as before.

Sign in to comment.

Answers (0)

Categories

Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!