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


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

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

These are the export statements for each compiler version, assuming that the default high-level qualifiers are being used. Where the c89 environment variables are shown, the environment variables for c++ and cc must also be set.

  • For the current z/OS XL C/C++ compiler:
    • If you are using the z/OS shell, issue the following command:
      export STEPLIB="CBC.SCCNCMP"
    • If you are using the tcsh shell, issue the following command:
      setenv STEPLIB "CBC.SCCNCMP"
    Because the current z/OS XL C/C++ compiler supports compiling code that is to run on previous releases of z/OS, you do not need to use any additional c89 environment variables. All you need to do is specify the c89 option -Wc,"target(LEVEL)", where LEVEL is the level of z/OS on which the program is to be executed. For more information see the description of the TARGET option in z/OS XL C/C++ User's Guide.
  • For the IBM® C/C++ V3R2 compiler:
    • If you are using the z/OS shell, issue the following commands:
      export STEPLIB="CBC.V3R2M0.SCBC3CMP"
      export _C89_CVERSION=Ox13020000
      export _C89_CLIB_PREFIX=CBC.V3R1M0
    • If you are using the tcsh shell, issue the following commands:
      setenv STEPLIB "CBC.V3R2M0.SCBC3CMP"
      setenv _C89_CVERSION Ox13020000
      setenv _C89_CLIB_PREFIX CBC.V3R1M0
  • For the AD/Cycle C/370™ V1R2 compiler:
    • If you are using the z/OS shell, issue the following commands:
      export STEPLIB="EDC.V1R2M0.SEDCDCMP"
      export _C89_CVERSION=Ox11020000
      export _C89_CLIB_PREFIX=EDC.V1R2M0)
    • If you are using the tcsh shell, issue the following commands:
      setenv STEPLIB "EDC.V1R2M0.SEDCDCMP"
      setenv _C89_CVERSION Ox11020000
      setenv _C89_CLIB_PREFIX EDC.V1R2M0)
    Because this compiler only supports the C language, it cannot be used with the c++ command.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014