Why am I unable to compile using the MATLAB COMPILER when my code has WK1READ or WK1WRITE in it?

3 views (last 30 days)
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

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
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.

More Answers (0)

Categories

Find more on MATLAB Compiler 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!