IBM Support

Build results in Error: 274 compile and link exited with error code

Troubleshooting


Problem

Attempts to build on Microsoft Windows XP using IBM Rational SDL Suite results in the error ‘Error: 274 compile and link exited with error code’.

Cause

One or more of the following reasons could cause this issue to occur:

  1. A supported Microsoft Compiler not installed on the Microsoft Windows XP machine.

  2. The environment variables of the compiler (say Visual C++ 6 ) are not set properly.
    Note: This in turn will lead to "nmake error" which will cause error 274 in SDL.

  3. The right kernel is not selected in the Make dialogue box. For example, if one is using the Microsoft compiler, before simulating ensure you select the option "Microsoft Simulation".

  4. If some external C code is used in Rational SDL and is not properly linked can cause error 274.

  5. One of the code generators (CAdvanced/ Cbasic/ Cextreme/ Cmicro) is selected in the code generation section of the Rational SDL make dialog box and the corresponding feature is not available in the license file.

Resolving The Problem

The number of the Cause above relates to the specific solution below:

  1. Ensure a supported compiler is used with IBM Rational SDL and TTCN Suite 6.3 on Microsoft Windows XP:
    • Microsoft Visual C++ 6.0 sp3 and sp4, referred to as Visual C++ 6
    • Visual Studio .NET
    • Visual Studio 2005
    • Visual Studio 2008 (also Express edition)

      The list of support compilers can be found in the release notes for each of the specific version of SDL Suite from the link below: http://www.ibm.com/support/docview.wss?uid=swg21380566

  2. Open a command prompt and run "nmake" to verify whether the environment variable is being recognized.

    If the varibale is not recognized:
    • Reinstall VC++ by setting the environment variables options on.
      Or
    • Add the path of the 'VCVARS32.bat' file to the Target in the SDL and TTCN suite shortcut.

      For example: If Visual Studio 2005 is installed on your machine then the target in the shortcut of SDL and TTCN suite should be as below:

      "C:\Program Files\Microsoft Visual Studio 8\VC\bin\vcvars32.bat" && "C:\Telelogic\SDL_TTCN_Suite6.3\bin\wini386\sdt.exe"

      Also make sure to have spaces before and after && in the above statement. Below is a screenshot of the shortcut:



  3. The correct kernel can be selected by clicking Generate > Make > Use Standard kernel > Microsoft Simulation. Similarly, if validation is being performed select the compiler as “Microsoft Validation”

  4. Ensure any external C code used in SDL is properly linked.

  5. Ensure the corresponding feature of the code generator in use is available in the license file.

[{"Product":{"code":"SSYR86","label":"Rational SDL Suite"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"6.3","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

More support for:
Rational SDL Suite

Software version:
6.3

Operating system(s):
Windows

Document number:
394031

Modified date:
16 June 2018

UID

swg21395681