xlc(1) IBM XL C/C++ for Linux, V11.1 xlc(1) NNAAMMEE xlc, xlc++, xlC, cc, c89, c99 and related commands - invoke the IBM XL C/C++ compiler. SSYYNNTTAAXX _<_i_n_v_o_c_a_t_i_o_n_-_c_o_m_m_a_n_d_> [[ _<_o_p_t_i_o_n_> || _<_i_n_p_u_t_f_i_l_e_> ]] ...... DDEESSCCRRIIPPTTIIOONN The invocation commands compile C and C++ source files. The commands and their recommended usages are described below. Invocations Usage (supported standards) _________________________________________________________ xlc, xlc_r Compile C source files. (ANSI C89, ISO C99, IBM language extensions) xlc++, xlc++_r, xlC, Compile C++ source files. xlC_r cc, cc_r Compile legacy code that does not conform to Standard C. (pre-ANSI C) c89, c89_r Compile C source files with strict conformance to the C89 standard. (ANSI C89) c99, c99_r Compile C source files with strict conformance to the C99 standard. (ISO 99) gxlc Accepts GNU C options, maps them to their equivalent XL C option, then invokes xlc. gxlc++, gxlC Accepts GNU C/C++ options, maps them to their equivalent XL C++ option, then invokes xlc++. The main difference between these commands is that they use different default options (which are set in the configuration file /opt/ibmcmp/vac/11.1/etc/vac.cfg). See the Compiler Reference for more information on these invocation commands. All invocations with a suffix of __rr allow for thread-safe compilation. Use these commands to create threaded applications or to link programs that use multi-threading. These commands also process assembler source files and object files. The compiler calls the link editor to produce a single executable or shared library, unless you specify the compiler options that prevent object files from being linked. The input file may have any of the following suffixes: .C, .cpp, .cxx, C++ source file .cc, .cp, .c++ .c C source file .i Preprocessed C or C++ source file .a Archive file .o Object file for ld command .s Assembler source file .S Assembler source file that needs preprocessing .so Shared object file OOPPTTIIOONNSS Compiler options are categorized by their functions and may be used to set the compiler behavior. Options can be flag options or keyword options. Keyword options are specified in one of the following ways: -q