-qlonglong
Category
Pragma equivalent
#pragma options [no]longlong
Purpose
Allows IBM long long integer types in your program.
Defaults
- -qlonglong for the xlc, cc and c99 invocation commands; -qnolonglong for the c89 invocation command.
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.
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