Mex, *.cpp not found

4 visualizaciones (últimos 30 días)
Nirmal
Nirmal el 1 de Jun. de 2011
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.

Respuesta aceptada

Walter Roberson
Walter Roberson el 1 de Jun. de 2011
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 comentario
Nirmal
Nirmal el 1 de Jun. de 2011
:) that was easy :). Thank you.

Iniciar sesión para comentar.

Más respuestas (1)

Walid
Walid el 5 de Oct. de 2011
have the same problem ? what is cd()'d ? Walid
  1 comentario
Walter Roberson
Walter Roberson el 5 de Oct. de 2011
cd() is "change current directory"; see http://www.mathworks.com/help/techdoc/ref/cd.html

Iniciar sesión para comentar.

Categorías

Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by