longlong

Applies to C Applies to C++

Purpose

Allows long long integer types in your program.

Syntax


Syntax Diagram

Default

The default with xlc , xlC and cc is -qlonglong, which defines _LONG_LONG (long long types will work in programs). The default with c89 is -qnolonglong (long long types are not supported).

Notes

Applies to C This option cannot be specified when the selected language level is stdc99 or extc99. It is used to control the long long support that is provided as an extension to the C89 standard. This extension is slightly different from the long long support that is part of the C99 standard.

Example

  1. To compile myprogram.c so that long long ints are not allowed, enter:
    xlc myprogram.c -qnolonglong
    

Related References

Compiler Command Line Options IBM Copyright 2003