Why mex is creating error?

2 次查看(过去 30 天)
Shaila parvin
Shaila parvin 2014-2-10
编辑: Rehan 2017-9-5
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 个评论
Walter Roberson
Walter Roberson 2014-2-10
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
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 个评论
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.

请先登录,再进行评论。


Jan
Jan 2017-8-5

类别

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