Error using mex for compiling unravel.c

조회 수: 7 (최근 30일)
Vinh Nguyen
Vinh Nguyen 2012년 12월 22일
Hi all, I am trying to run mex compiler for unravel.c. However, it always show the error:Error using mex (line 206)Unable to complete successfully.
Although I have try some solution such as download update for Microsoft Visual Studio 2010, the problem keep happening.
Can anyone please help me?
Thank you
PS: I am running MATLAB R2012a and using Microsoft Visual Studio 2010 Express Edition on a 64bit laptop (windows 7).
  댓글 수: 9
Walter Roberson
Walter Roberson 2012년 12월 24일
What directory are you in at the time you try to do the compile?
Vinh Nguyen
Vinh Nguyen 2012년 12월 24일
A folder inside the C disk. I tried somewhere else. But it still doesn't work.

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

채택된 답변

Image Analyst
Image Analyst 2012년 12월 22일
편집: Image Analyst 2012년 12월 22일
The free versions of Microsoft products are limited in many ways. For example the "starter edition" of Office won't let you talk to it from MATLAB via ActiveX. A while ago I remember that I encountered some limitation with the Express (free) edition of Visual Studio but I don't remember what it was. Perhaps you're running into something like that. Ask someone who has the full version of Visual Studio to compile it for you, or switch to another compiler.
  댓글 수: 5
Image Analyst
Image Analyst 2012년 12월 24일
편집: Image Analyst 2012년 12월 24일
Your Visual studio Folder is in Program Files (x86), which is often a folder meant for 32 bit applications. Yet you are trying to compile with 64 bit MATLAB because I see win64 in this folder: C:\PROGRA~1\MATLAB\R2012a\bin\win64\. I never try to mix things like that. Are you sure that your version of Visual Studio is a 64 bit app and you're trying to compile in 64 bit MATLAB? Is it possible that the free "Express Edition" of Visual Studio only comes in a 32 bit version? What version of Visual Studio does your friend have - the Professional version or the Enterprise version? Are you sure BOTH you and your friend have the compiler? It's so expensive that usually only one person in an organization has it. Type "ver" on the command line and report what it says back here.
Vinh Nguyen
Vinh Nguyen 2012년 12월 24일
편집: Vinh Nguyen 2012년 12월 24일
Actually, I firstly installed the SDK 7.1, which seems to be the 32 bit application. When I installed the SDK, I see no option for 64 bit. It does not work for me. Then I find the solution at http://www.mathworks.com/support/solutions/en/data/1-G1P8HP/
May be the problem is the combination of 32 bit SDK and 64 bit Matlab.

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by