MATLAB: Do I get an error when I build an application using MATLAB Compiler 4.13 (R2010a)

MATLAB Compiler

I am trying to build a simple application using deploytool. The build fails generating the following error
lcclnk -o "O:\GLOBALMACRO\GLOBALCURRBOB\GLOBALCURRDATA\TEST2009B\SRC\test2009b.exe" -tmpdir "O:\GLOBALMACRO\GLOBALCURRBOB\GLOBALCURRDATA\TEST2009B\SRC\." -L"C:\PROGRA~1\MATLAB\R2009b\sys\lcc\lib" -libpath "C:\PROGRA~1\MATLAB\R2009b\extern\lib\win32\lcc" @C:\DOCUME~1\SHASTR\LOCAL SETTINGS\TEMP\MBUILD~1\MBUILD~1.RSP mclmcrrt.lib
impossible to open C:\DOCUME~1\SHASTR\LOCAL
Error: An error occurred while shelling out to mbuild (error code = 2).

Best Answer

This bug has been fixed in Release 2011a (R2011a). For previous product releases, read below for any possible workarounds:
The ability to resolve a temp directory whose path has a space does not exist in MATLAB Compiler.
To work around this issue, set the temporary directory to a local folder whose path does not include any space. One can set the temporary directory for a MATLAB session using the following commands:
setenv('TEMP', 'PathToDir');