24.05.2014 Views

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

nnn<br />

severity_letter<br />

’message text’<br />

01 Indicates an <strong>XL</strong> <strong>Fortran</strong> common message<br />

11-20 Indicates a <strong>Fortran</strong>-specific message<br />

24 Indicates a VAST preprocessor message<br />

25 Indicates a run-time message from an <strong>XL</strong> <strong>Fortran</strong><br />

application program<br />

26 Indicates a KAP preprocessor message<br />

85 Indicates a loop-trans<strong>for</strong>mation message<br />

86 Indicates an interprocedural analysis (IPA) message<br />

Is the message number<br />

Indicates how serious the problem is, as described in the preceding<br />

section<br />

Is the text describing the error<br />

Limiting the Number of Compile-Time Messages<br />

If the compiler issues many low-severity (I or W) messages concerning problems<br />

you are aware of or do not care about, use the -qflag option or its short <strong>for</strong>m -w to<br />

limit messages to high-severity ones:<br />

# E, S, and U messages go in listing; U messages are displayed on screen.<br />

xlf95 -qflag=e:u program.f<br />

# E, S, and U messages go in listing and are displayed on screen.<br />

xlf95 -w program.f<br />

Selecting the Language <strong>for</strong> Messages<br />

By default, <strong>XL</strong> <strong>Fortran</strong> comes with messages in U.S. English only. You can also<br />

order translated message catalogs:<br />

v Compiler messages in Japanese<br />

v Run-time messages in Japanese<br />

If compile-time messages are appearing in U.S. English when they should be in<br />

another language, verify that the correct message catalogs are installed and that the<br />

LANG, LC_MESSAGES, and/or LC_ALL environment variables are set<br />

accordingly.<br />

If a run-time message appears in the wrong language, also ensure that your<br />

program calls the setlocale routine.<br />

Related In<strong>for</strong>mation: See “Environment Variables <strong>for</strong> National Language Support”<br />

on page 13 and “Selecting the Language <strong>for</strong> Run-Time<br />

Messages” on page 50.<br />

To determine which <strong>XL</strong> <strong>Fortran</strong> message catalogs are installed, use the following<br />

commands to list them:<br />

lslpp -f ’xlfcmp.msg.*’ # compile-time messages<br />

lslpp -f ’xlfrte.msg.*’ # run-time messages<br />

The file names of the message catalogs are the same <strong>for</strong> all supported international<br />

languages, but they are placed in different directories.<br />

Problem Determination and Debugging 371

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!