Why do I get the error message "Error: File "########" not found." when using the MATLAB add-in for Visual Studio?

6 views (last 30 days)
Why do I get the error message "Error: File "########" not found." when using the MATLAB add-in for Visual Studio?
When using the MATLAB add-in for Visual Studio the following error message pops up in a Microsoft Visual C++ error dialog box:
Error: MCC returned error code 1.
The following information is contained in the mcc-log.txt file:
This is the output from running MATLAB Add-in.
Please close this window after viewing it.
--------------MCC/MEX BEGIN---------------
mcc -k "D:\MATLAB6P1\WORK\MLCOMPILER\deleteplease9\mcc.mak"
-/n -B sgl -A line:on -g libmmfile.mlib libmwsglm.mlib -vh "D:\MATLAB6p1\work\TestFun.m"
Compiler version: 2.1
Warning: (PM): Directory access failure: D:\Applications\Microsoft.
Warning: (PM): Directory access failure: Studio.
Error: File "Visual" not found.
--------------MCC/MEX DONE----------------

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This is an issue with the MATLAB add-in for Visual Studio that occurs if there are any directory names with white spaces on the MATLAB path. This issue has been forwarded to our development staff to be fixed in a future MATLAB release.
The name displayed in the error log as the offending file is a section of the directory name that appears after the space.
A workaround to this problem is to remove the spaces from the directory names or remove the directory in question from the MATLAB path. After doing this, you should run the following commands:
cd(prefdir) %change to the preferences directory
mccsavepath % update the mccpath file to reflect the changes made to the MATLAB path

More Answers (0)

Categories

Find more on C Shared Library Integration in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!