MATLAB: Am I unable to compile using the MATLAB COMPILER when the code has WK1READ or WK1WRITE in it

_mlfnwk1constcompilerexternallnk2019lotusMATLAB Compilersymbol [~]unresolvedwk1readwk1write

Why am I unable to compile using the MATLAB COMPILER when my code has WK1READ or WK1WRITE in it?
When I use
mcc -m -W filname.m
or
mcc -B sgl filename.m
I get the following error message.
wk1write.obj : error LNK2019:
unresolved external symbol _mlfNWk1const referenced in function _Mwk1write
wk1read.obj : error LNK2019:
unresolved external symbol _mlfNWk1const referenced in function _Mwk1read

Best Answer

This bug has been fixed in Release 2006a (R2006a). For previous product releases, read below for any possible workarounds:
This bug has been fixed for Release 14 (R14). For previous releases, please read below for any possible workarounds:
WK1READ and WK1WRITE call a script file WK1CONST and therefore cannot be compiled with the MATLAB Compiler. As a workaround, use CSVREAD and CSVWRITE. These functions read and write data in a text format that uses comma as a delimiter. The files created by CSVWRITE can be opened in a Lotus spreadsheet.