z/OS UNIX System Services Planning
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Setting up xlc to work with the current z/OS XL C/C++ compiler

z/OS UNIX System Services Planning
GA32-0884-00

The xlc utility uses an external configuration file to control the invocation of the compiler. Before you can compile C and C++ programs, you must set up the environment variables and the configuration file for your application. For more information about those, see the xlc utility description in z/OS UNIX System Services Command Reference.

If you are using the z/OS® shell, issue the following commands to set the environment variables:
LANG=En_US
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
PATH=/bin/c89:/usr/lpp/cbclib/xlc/bin${PATH:+${PATH}}
export LANG NLSPATH PATH
If you are using the tcsh shell, issue the following commands to set the environment variables:
setenv LANG=En_US
setenv NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
setenv PATH=/bin/c89:/usr/lpp/cbclib/xlc/bin${PATH:+${PATH}}

Before using the compiler, you need to install the message catalogs and set the environment variables as described in the xlc utility description in z/OS UNIX System Services Command Reference.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014