I have two models model1 and model2 that use a library block. I have generated S-functions from parts of model1 and model2 that contain the library block (using block right click menu ->Real-Time Workshop->Build S-function):
Set of files from model1:
sfun1.c, sfun1.h. sfun1.mexw32
Set of files from model2:
sfun2.c, sfun2.h. sfun2.mexw32
I see the following error messages when I try to build a model that have the S-function blocks referring to sfun1 and sfun2:
Using ERT.TLC (Visual Studio compiler):
LINK : fatal error LNK1181: cannot open input file 'First_Part_sf.obj' NMAKE : fatal error U1077: '"c:\program files\microsoft visual studio 8\VC\BIN\link.EXE"' : return code '0x49d' Stop.
Using xPCTARGETERT.TLC (WATCOM compiler):
Error(F10): Macros nested too deep Warning(W79): Makefile may be Microsoft; try /ms switch Error(E02): Make execution terminated
Best Answer