-qlonglong

Category

Language element control

Pragma equivalent

#pragma options [no]longlong

Purpose

Allows IBM long long integer types in your program.

Syntax

Read syntax diagramSkip visual syntax diagram
>>- -q--+-longlong---+-----------------------------------------><
        '-nolonglong-'   

Defaults

Usage

C only This option takes effect when the -qlanglvl=extended | stdc89 | extc89 option is in effect. It is not valid when the -qlanglvl=stdc99 | extc99 option is in effect, because the long long support provided by this option is incompatible with the semantics of the long long types mandated by the C99 standard.

C++ only This option does not take effect when the -qlanglvl=c99longlong option is in effect, because the long long support provided by this option is incompatible with the semantics of the long long types mandated by the C99 standard as adopted in C++0x.

Predefined macros

_LONG_LONG is defined to 1 when long long data types are available; otherwise, it is undefined.

Examples

To compile myprogram.c with support for IBM long long integers, enter:
cc myprogram.c -qlonglong
AIX v4.2 and later provides support for files greater than 2 gigabytes in size so you can store large quantities of data in a single file. To allow large file manipulation in your application, compile with the -D_LARGE_FILES and -qlonglong compiler options. For example:
xlc myprogram.c -D_LARGE_FILES -qlonglong

Related information