Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP Itanium®-based Systems: HP aC++/HP C Programmer's Guide > Chapter 2 Command-Line Options

Extensions to the Language

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

These options support extensions to the C++ language.

-ext

-ext

Specifying -ext, enables the following HP aC++ extensions to the C++ standard:

  • 64-bit integer data type support for:

    • long long (signed 64-bit integer)

    • unsigned long long (unsigned 64-bit integer)

  • Use this option to declare 64-bit integer literals and for input and output of 64-bit integers.

  • #assert, #unassert preprocessor directives, which allow you to set a predicate name or predicate name and token to be tested with a #if directive.

When this option is used with -AC89 or -AC99, it defines the following macros:

  • -D__STDC_EXT__

  • -D_HPUX_SOURCE (unless -Aa is used)

NOTE: When using -ext, specify it at both compile and link time. For example:

aCC -ext foo.C

compiles foo.C which contains a long long declaration.

#include <iostream.h>

void main(){
     long long ll = 1;
     cout << ll << endl;
}

+e

The +e option is equivalent to the -ext option.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.