IBM Support

LIBSETCCFLAGS uses option -Vx.x.x in the libset.mk makefile

Question & Answer


Question

What is the the significance of the "-V2.8.1" as seen in the example "LIBSETCCFLAGS = -V2.8.1 -fno-exceptions -fno-rtti" found in the IBM® Rational® Rose RealTime® on line Help (Adapting Rational Rose RealTime for Target Environments > Porting the TargetRTS > Libset makefile?

Answer

The option is used to ensure that a specific version of the compiler is used.

For g++, -Vx.x.x ensures that the compiler version is explicitly stated. This prevents the wrong version of the compiler from being used.

Note: If the -Vx.x.x does not match the compiler installed, errors like the following may be experienced.

!> Compiling MyComponent
g++: installation problem, cannot exec `cpp0': No such file or directory
g++: file path prefix `/usr/lib/gcc-lib/i386-linux/egcs-2.91.66/' never used


If there is a problem with compiler mismatch, the TargetRTS can easily be ported to a new version. A good example of this is given in the technote Porting Rose RealTime's TargetRTS to a new minor version of a supported compiler

Note: The "-V" option might not be available for all compilers. Consult your compiler vendor's documentation for more information on this and other compiler options.

[{"Product":{"code":"SSSHKL","label":"Rational Rose RealTime"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"TargetRTS","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF016","label":"Linux"}],"Version":"2002.05.00;2002.05.20;2003.06.00;2003.06.01;2003.06.12;2003.06.13;2003.06.14;2003.06.15","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21131275