LINK : fatal error LNK1104: cannot open file 'mexw32'

Hello Everyone, I'm facing a problem while running mex .The mex command is giving following error.
LINK : fatal error LNK1104: cannot open file 'mesh.mexw32'
C:\PROGRA~1\MATLAB\R2010A\BIN\MEX.PL: Error: Link of 'mesh.mexw32' failed.
I tried deleting "mesh.mexw32" but not able to do so. It says "You need permission to perform this action." I was debugging the code in VS. Thanks in advance.

 Accepted Answer

Close all programs, which have access to the file, e.g. the compiler and Matlab. Does deleting work now? If not, log-off. If you still cannot delete the file, restart the machine.

5 Comments

Thanks Jan, problem is solved after restarting the machine.
Amit: If you run into this problem again, try running "clear mex" to see if it is MATLAB that is locking the MEX-function in memory.
clear mex did the trick for me!
Thanks!
Amit, please do not "flag" messages except to report them to the Editors as being inappropriate for the forum. When you "flag" a message that someone else has written, they are not notified.
Ok, I didn't know what the flag is meant for. Thanks for the info.

Sign in to comment.

More Answers (0)

Categories

Tags

Community Treasure Hunt

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

Start Hunting!