Compile-time and link-time environment variables

The following environment variables are used by the compiler when you are compiling and linking your code. Many are built into the Linux® operating system. With the exception of LANG and NLSPATH, which must be set if you are using a locale other than the default en_US, all of these variables are optional.

LANG
Specifies the locale for your operating system. The default locale used by the compiler for messages and help files is United States English, en_US, but the compiler supports other locales. For a list of these, see National language support. For more information on setting the LANG environment variable to use an alternate locale, see your operating system documentation.
LD_RUN_PATH
Specifies search paths for dynamically loaded libraries, equivalent to using the -R link-time option. The shared-library locations named by the environment variable are embedded into the executable, so the dynamic linker can locate the libraries at application run time. For more information about this environment variable, see your operating system documentation. See also -R.
NLSPATH
Specifies the directory search path for finding the compiler message and help files. You only need to set this environment variable if the national language to be used for the compiler message and help files is not English. For information on setting the NLSPATH, see Enabling the XL C/C++ error messages.
PATH
Specifies the directory search path for the executable files of the compiler. Executables are in /opt/ibmcmp/vacpp/11.1/bin/ if installed to the default location. For information, see Setting the PATH environment variable to include the path to the XL C/C++ invocations
TMPDIR
Optionally specifies the directory in which temporary files are created during compilation. The default location, /tmp/, may be inadequate at high levels of optimization, where paging and temporary files can require significant amounts of disk space, so you can use this environment variable to specify an alternate directory.
XLC_USR_CONFIG
Specifies the location of a custom configuration file to be used by the compiler. The file name must be given with its absolute path. The compiler will first process the definitions in this file before processing those in the default system configuration file, or those in a customized file specified by the -F option; for more information, see Using custom compiler configuration files.