|
Dear All,
I'm trying to use Matlab's mex facility, ultimately so that I can pass and receive arguments from C++ routines. I was hoping someone could tell me where I might be going wrong.
Following the advice on http://www.mathworks.com/support/tech-notes/1600/1605.html#intro, my first step was
>> mex -setup
Warning: DOS programs may not execute correctly when the current directory is a UNC pathname.
> In mex_helper at 52
In mex at 216
'\\SD1FILEPW11\USERS\JBEJON\MATLAB'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
Please choose your compiler for building external interface (MEX) files:
Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\PROGRA~1\MATLAB\R2009a\sys\lcc
[0] None
Compiler: 1
Please verify your choices:
Compiler: Lcc-win32 C 2.4.1
Location: C:\PROGRA~1\MATLAB\R2009a\sys\lcc
Are these correct [y]/n? y
But then when I try
>> mex yprime.c
I get
Warning: DOS programs may not execute correctly when the current directory is a UNC pathname.
> In mex_helper at 52
In mex at 216
'\\SD1FILEPW11\USERS\JBEJON\MATLAB'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
C:\PROGRA~1\MATLAB\R2009A\BIN\MEX.PL: Error: 'yprime.c' not found.
??? Error using ==> mex at 218
Unable to complete successfully.
(and mex 'C:\Program Files\MATLAB\R2009a\extern\examples\mex\yprime.c' is the same)
By the way,
>> matlabroot
ans =
C:\Program Files\MATLAB\R2009a
I tried following the 'troubleshooting' section in the same link, but I still couldn't sort it out. Does anyone have any ideas as to what the issue is here please?
|