MATLAB: Do I get the warning messages while using Lcc compiler 2.4.1 for LOADLIBRARY on MATLAB R2011a on Windows XP

lccloadlibraryMATLAB

I am trying to follow an example from the documentation for the loadlibrary command with Lcc compiler as follows:
>>hfile = [matlabroot '\extern\include\matrix.h'];
loadlibrary('libmx', hfile, 'mfilename', 'mxproto')
and getting the following warning messages :
Warning: Message from C preprocessor:
lcc preprocessor error: C:\Data\Engine Decks\BR188\BR188.h:10 Could
not find include file "stdlib.h"
lcc preprocessor error: C:\Data\Engine Decks\BR188\BR188.h:11 Could
not find include file "string.h"
————
————

Best Answer

This bug has been fixed in Release 2012a (R2012a). For previous product releases, read below for any possible workarounds:
This issue occurs when the mex LCC configuration is expecting the system environment variable MATLAB to be defined, but it is not properly defined on your system.
Please use the Lcc compiler shipped with MATLAB which you were using earlier and try the following workaround:
Run the command :
>>setenv('matlab',matlabroot)
before issuing a loadlibrary command with a header file as input.