IBM Support

The gcc/g++ compilers default to 64-bit compile mode on SLES 11

Troubleshooting


Problem

In SLES 11, the gcc and g++ compilers default to 64-bit mode compilation, while the XL C/C++ compilers defaults to 32-bit mode.

Resolving The Problem



If you have dependencies on 32-bit mode with the gcc or g++ compiler, you need to specify -m32 in your compiling command to the gcc or g++ compiler.

If you prefer to use 64-bit mode with the XL C/C++ compiler (eg. xlC, xlc), you need to specify -q64 in your compiling command to the C/C++ compiler.

The default compilation mode of the gxlc and gxlc++ utilities becomes 64-bit, in order to match the gcc and g++ compilers.

[{"Product":{"code":"SSJT9L","label":"XL C\/C++"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Component":"Compiler","Platform":[{"code":"PF016","label":"Linux"}],"Version":"10.1","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
08 August 2018

UID

swg21378134