Why mex is creating error?

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 Kommentar

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

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Rehan
Rehan am 5 Aug. 2017
Bearbeitet: Walter Roberson am 5 Aug. 2017

0 Stimmen

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 Kommentare

Walter Roberson
Walter Roberson am 5 Aug. 2017
Using the full path is not required on Windows.
Jan
Jan am 5 Aug. 2017
@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 am 5 Sep. 2017
Bearbeitet: Rehan am 5 Sep. 2017
you are absolutely right, maybe his file is not in current folder so its giving error, i tried to make easy for him.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Write C Functions Callable from MATLAB (MEX Files) finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 10 Feb. 2014

Bearbeitet:

am 5 Sep. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by