From: Stefan Andreevski on
Hello everyone,

I am trying to build a SIMULINK model with the RTW and VS 2008 compiler but I get the following error message:

Error building Real-Time Workshop target for block diagram 'Tank3_OpenLoop'. MATLAB error message:
Error using ==> genMakefileAndBuild at 1139
Error(s) encountered while building model "Tank3_OpenLoop".

Here is the more important part of the log:
### Linking ...
LINK : fatal error LNK1181: cannot open input file 'rtiostream_tcpip.obj'
NMAKE : fatal error U1077: 'd:\install\microsoftvisualstudio\VC\BIN\link.EXE' : return code '0x49d'
Stop.
D:\TU\Tanks in series\MultiTank\Tank3_OpenLoop_RTCON>echo The make command returned an error of 2
The make command returned an error of 2

I've searched the internet for this type of error but no joy.

The special thing for this model is a device driver that is based on a S-function.
When I tried to build a model without any S-functions in it I succeeded and when trying to build only the driver subsystem I failed.
However I did testing on MatlabR2007B and VS 2005 on another machine and successfully built the codes.

Not sure if this is a Matlab, a VS, a code vendor bug, or I am just not doing something right :)
Any feedback on this form anyone will be greatly appreciated.

PS: I also tried with the VS Express 2008 a few weeks ago and also failed building on same row.

Cheers,
Stefan