-qprint

Category

Listings, messages, and compiler information

Pragma equivalent

None.

Purpose

Enables or suppresses listings.

When -qprint is in effect, listings are enabled if they are requested by other compiler options that produce listings. When -qnoprint is in effect, all listings are suppressed, regardless of whether listing-producing options are specified.

Syntax

Read syntax diagramSkip visual syntax diagram
        .-print---.   
>>- -q--+-noprint-+--------------------------------------------><

Defaults

-qprint

Usage

You can use -qnoprint to override all listing-producing options and equivalent pragmas, regardless of where they are specified. These options are:
  • -qattr
  • -qlist
  • -qlistopt
  • -qsource
  • -qxref

Predefined macros

None.

Examples

To compile myprogram.c and suppress all listings, even if some files have #pragma options source and similar directives, enter:
xlc myprogram.c -qnoprint