-qlonglong
Category
Pragma equivalent
#pragma options [no]longlong
Purpose
Allows IBM long long integer types in your program.
Defaults
-qlonglong for the xlc, xlc++, xlC, cc and c99 invocation
commands; -qnolonglong for the c89 invocation
command.
-qlonglong for
the -qlanglvl= compat366 | extended option; -qnolonglong for
the -qlanglvl=strict98 | extended0x option. When
multiple -qlanglvl options that imply -q[no]longlong or
actual -q[no]longlong options are specified, the
last specified option determines whether -qlonglong is
in effect.
Usage
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.
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++11.
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 the following command:
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. See the following
example:
xlc myprogram.c -D_LARGE_FILES -qlonglong



