Problem with mex at 208

3 views (last 30 days)
Przemyslaw
Przemyslaw on 13 Apr 2011
Hello,
When I am trying to choose complier with command:
mex -setup
I've got following report:
??? Error using ==> mex at 208 Unable to complete successfully.
Caused by: Error using ==> cd Cannot CD to C:\Users\przemek\AppData\Local\Temp;C:\MinGW\bin (Directory access failure).
I am not able to find solution of this problem. Win vista 32-bit
Przemyslaw

Answers (2)

Kaustubha Govind
Kaustubha Govind on 13 Apr 2011
My guess is that your TEMP environment variable is corrupted. What do you see when you try this at the MATLAB prompt:
>> !echo %TEMP%
Now try "echo %TEMP%" at the system prompt. (they should match)
If the value returned is "C:\Users\przemek\AppData\Local\Temp;C:\MinGW\bin", you need to remove everything after "C:\Users\przemek\AppData\Local\Temp".
  2 Comments
abukaf
abukaf on 20 Jul 2013
but when i m using linux(ubuntu 11.04). 32-bit........
how i resolve the same
i get d following error
mex resize.cc
Warning: You are using gcc version "4.5.2-8ubuntu4)". The version currently supported with MEX is "4.3.4". For a list of currently supported compilers see: http://www.mathworks.com/support/compilers/current_release/
/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/cc1plus: /usr/local/MATLAB/R2011a/sys/os/glnx86/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /usr/lib/libppl_c.so.2) /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/cc1plus: /usr/local/MATLAB/R2011a/sys/os/glnx86/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libppl_c.so.2) /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/cc1plus: /usr/local/MATLAB/R2011a/sys/os/glnx86/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /usr/lib/libppl.so.7) /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/cc1plus: /usr/local/MATLAB/R2011a/sys/os/glnx86/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libppl.so.7) /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/cc1plus: /usr/local/MATLAB/R2011a/sys/os/glnx86/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libgmpxx.so.4)
mex: compile of ' "resize.cc"' failed.
??? Error using ==> mex at 208 Unable to complete successfully.
Jan
Jan on 20 Jul 2013
@abukaf: Please do not post a new question as a comment to an answer of another question. You have created a new question already, so please remove this duplicate message here.

Sign in to comment.


Przemyslaw
Przemyslaw on 14 Apr 2011
Thank You, problem is solved.
Przemyslaw

Categories

Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!