MATLAB: Do I get an error when building a model in Stateflow 6.1 (R14SP1)

demoenvenvironmentalerrorfuelsyslink.objstateflowvarvariable

For example, I am trying to build the fuelsys demo in Stateflow. However, I receive the following error:
LINK : fatal error LNK1181: cannot open input file 'link.obj'
NMAKE : fatal error U1077: 'link.exe' : return code '0x49d'
Stop.

Best Answer

In the presence of an environmental variable on PC (typically created to get profiling tools such as VTune to work), Stateflow may error when building a model with Microsoft Visual C++ 7.1 compiler. One variable that has caused a problem in some cases is:
LINK=/fixed:no
To work around this issue, remove the environmental variable.