I have a simple MATLAB function that uses the IMPORTDATA function. When I try to build a stand-alone program with the MATLAB compiler, I receive many warnings, and then the following error:
wk1read.obj : error LNK2001: unresolved external symbol _mlfNWk1const myFunc.exe : fatal error LNK1120: 1 unresolved externals MBUILD.BAT: Error: Link of 'myFunc.exe' failed. ??? Error using ==> mbuild Unable to complete successfully ??? Error: An error occurred while shelling out to mbuild (error code = 1). Unable to build executable (specify the -v option for more information). Error in ==> D:\MATLAB6p5\toolbox\compiler\mcc.dll
Best Answer