Invalid MEX file after PC initial setup

I reinstalled windows on my computer. I want to execute a MEX file which I compiled on Visual Studio 2010 (I installed Visual Studio 2012 on this computer) which worked before, but I get the message
invalid mex file '<pathname>': The specified module could not be found.
Do I need to compile the file in visual studio 2012? What do I have to do to run the file on this computer without recompiling it? Or do I have to install Visual Studio 2010?

답변 (1개)

Walter Roberson
Walter Roberson 2013년 4월 15일

1 개 추천

You probably need to install the run-time library for VS2010

댓글 수: 1

Stiphu
Stiphu 2013년 4월 15일
I tryed to, but I got the error message: 'A newer version of Microsoft Visual C++ 2010 Redistributable has been detected on the machine.' So that's probably because I installed Visual Studio 2012 on the computer? Does that mean that there is no other way thän recompiling my MEXFile?

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

카테고리

도움말 센터File Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

질문:

2013년 4월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by