필터 지우기
필터 지우기

Mex Compiler Setup

조회 수: 3 (최근 30일)
Ellen Webborn
Ellen Webborn 2012년 5월 14일
Hello all, I was wondering if anyone could help me with a problem. When running mex -setup it finds Microsoft Visual C++ Express 2008, and allows me to select and verify the compiler.
However, following the standard warning about redistributed mex files I get the following error message:
Error using MEX (line 206) Unable to complete successfully.
It then reverts to using the matlab compiler which can't function with the C++ files. I have checked environment variables against somebody else but this doesn't seem to be the problem. Any help would be greatly appreciated!
I am running MATLAB R2011b and using Microsoft Visual Studio 2008 Express Edition on a 32bit laptop (windows 7). Thanks!
Ellen

채택된 답변

Friedrich
Friedrich 2012년 5월 14일
Hi,
VS 2008 Express isnt supported by 11b:
So what did you do to make MATLAB list it? Try a supported compiler, e.g. VS 2010 Express. After you installed a supported compiler, try to compile the timestwo example:
copyfile([matlabroot '\extern\examples\refbook\timestwo.c'])
mex timestwo.c -v
And post the full output if you recieve any errors.
  댓글 수: 1
Ellen Webborn
Ellen Webborn 2012년 5월 15일
Thank you very much! Yes this works now :)

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Troubleshooting in MATLAB Compiler SDK에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by