IBM Support

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

Technote (troubleshooting)


Problem(Abstract)


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.

Related information

gxlc and gxlc++ utilities
q64 Documentation

Document information

More support for: XL C/C++
Compiler

Software version: 10.1

Operating system(s): Linux

Reference #: 1378134

Modified date: 07 April 2009


Translate this page: