Before the compiler can compile your program, the message catalogs must be installed and the environment variables LANG and NLSPATH must be set to a language for which the message catalog has been installed.
If you see the following message during compilation, the appropriate message catalog cannot be opened:
Error occurred while initializing the message system in file: message_file
where message_file is the name of the message catalog that the compiler cannot open. This message is issued in English only.
You should then verify that the message catalogs and the environment variables are in place and correct. If the message catalog or environment variables are not correct, compilation can continue, but diagnostic messages are suppressed and the following message is issued instead:
No message text for message_number.
where message_number is the IBM XL C/C++ internal message number. This message is issued in English only.
To determine what message catalogs are installed on your system, and assuming that you have installed the compiler to the default installation location, you can list all of the file names for the catalogs by using the following command:
ls /usr/lib/nls/msg/%L/*.cat
where %L is the current primary language environment (locale) setting. The default locale is C. The locale for United States English is en_US.
The default message catalogs in /opt/ibmcmp/vacpp/7.0/msg are called when:
For more information about the NLSPATH and LANG environment variables, see your operating system documentation.