-qsrcmsg

Category

Listings, messages, and compiler information

Pragma equivalent

#pragma options [no]srcmsg

Purpose

Adds the corresponding source code lines to diagnostic messages generated by the compiler.

When nosrcmsg is in effect, the error message simply shows the file, line and column where the error occurred. When srcmsg is in effect, the compiler reconstructs the source line or partial source line to which the diagnostic message refers and displays it before the diagnostic message. A pointer to the column position of the error may also be displayed.

Syntax

Read syntax diagramSkip visual syntax diagram
        .-nosrcmsg-.   
>>- -q--+-srcmsg---+-------------------------------------------><

Defaults

-qnosrcmsg

Usage

When srcmsg is in effect, the reconstructed source line represents the line as it appears after macro expansion. At times, the line may be only partially reconstructed. The characters “....” at the start or end of the displayed line indicate that some of the source line has not been displayed.

Use -qnosrcmsg to display concise messages that can be parsed.

Predefined macros

None.