MATLAB: Do I get an error when trying to call a MATLAB compiler generated DLL containing a call to XLSREAD from a MEX function

compilerdlllibraryMATLAB Compilermexs-functionsharedxlsread

Why do I get an error when trying to call a MATLAB compiler generated DLL containing a call to XLSREAD from a MEX function?
I have a small function that makes a call to XLSREAD. I followed solution 31066 and modified XLSREAD so that it can be compiled using the MATLAB Compiler. I then followed solution 27671 to create a shared library.
If I create an executable and call the DLL, I get the expected results. If; however, I call this DLL from a MEX function or C-MEX S-function, I get the following error:
??? Undefined function 'iofun/private/biffparse'.

Best Answer

This appears to be a bug with the MATLAB Compiler. This information has been forwarded to our development staff for further investigation.
The only known workaround at this time is to use the MATLAB Compiler to generate the MEX or C-MEX S-Function directly. For example:
To generate a MEX function:
mcc -x filename.m
To generate a C-MEX S-Function:
mcc -S filename.m