Mex, *.cpp not found

Hi,
I am new to the mex stuff, dont know much about it. I tried compiling a cpp file and got a error.
mex estpab.cpp
C:\PROGRA~1\MATLAB\R2011A\BIN\MEX.PL: Error: 'estpab.cpp' not found.
??? Error using ==> mex at 208 Unable to complete successfully.
I have the cpp file in the folder that is added to the matlabpath. I dont know where I am supposed to place the file. Any help would be greatly appreciated.
Thank you.

 채택된 답변

Walter Roberson
Walter Roberson 2011년 6월 1일

0 개 추천

I believe that it is not sufficient that the folder be on the path: I believe you need to be cd()'d to the folder if you do not give the full path to the file.

댓글 수: 1

Nirmal
Nirmal 2011년 6월 1일
:) that was easy :). Thank you.

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

추가 답변 (1개)

Walid
Walid 2011년 10월 5일

0 개 추천

have the same problem ? what is cd()'d ? Walid

댓글 수: 1

Walter Roberson
Walter Roberson 2011년 10월 5일
cd() is "change current directory"; see http://www.mathworks.com/help/techdoc/ref/cd.html

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by