I have a referenced model that contains an S-Function. However, when I try to simulate the top level or parent model, I receive the following error message:
C:\Temp\RefBmsf.obj RefBlib.lib ..\..\..\slprj\sim\sharedutils\rtwshared.lib D:\Applications\MATLAB\R2006a\rtw\c\lib\win32\rtwlibrtwsfcnvc.lib D:\Applications\MATLAB\R2006a\extern\lib\win32\microsoft\libfixedpoint.lib Creating library C:\Templib1079.x and object C:\Templib1079.exp RefBlib.lib(RefB.obj) : error LNK2019: unresolved external symbol MySFcn referenced in function _mrRefB ..\..\..\RefBmsf.mexw32 : fatal error LNK1120: 1 unresolved externals D:\APPLICATIONS\MATLAB\R2006A\BIN\MEX.PL: Error: Link of '..\..\..\RefBmsf.mexw32' failed. '-e' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'D:\Applications\MATLAB\R2006a\bin\win32\mex' : return code '0x1' Stop. The make command returned an error of 2 'An error occurred during the call to make
Best Answer