I run this code:
mex -O resize.cc
mex -O reduce.cc
mex -O shiftdt.cc
mex -O features.cc
mex -O fconv.cc
This error occurs:
??? Error using ==> mex at 222 Unable to complete successfully.
Error in ==> compile at 1 mex -O resize.cc
What to do now?

댓글 수: 1

It doesn't say anything else?
Have you used
mex -setup
to configure your compiler ?

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

답변 (2개)

Rehan
Rehan 2017년 8월 5일
편집: Walter Roberson 2017년 8월 5일

0 개 추천

hi
this syntax is for mac or linux, but if you are running this code on windows. use full path like this
mex C:\Users\....\resize.cc
if you have any issue you can ask. i hope it helped.

댓글 수: 3

Walter Roberson
Walter Roberson 2017년 8월 5일
Using the full path is not required on Windows.
Jan
Jan 2017년 8월 5일
@Rehan: The situation is the same under Linux, MacOS and Windows: If resize.cc is in the current folder, no path is required. If it is not in the current folder, you need either a relative or absolute path.
Rehan
Rehan 2017년 9월 5일
편집: Rehan 2017년 9월 5일
you are absolutely right, maybe his file is not in current folder so its giving error, i tried to make easy for him.

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

카테고리

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

태그

질문:

2014년 2월 10일

편집:

2017년 9월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by