Compiling and binding in one step using compiler invocation command names supported by c89 and xlc

To compile and bind a XL C/C++ application program in one step to produce an executable file, specify c89 or c++ without specifying the -c option. You can use the -o option with the command to specify the name and location of the application program executable file that will be created. The c++ and cxx commands are identical. You can use cxx instead of c++ in all the examples that are shown in this topic. If you are using the xlc utility, you can also use the xlc and xlc++ commands, which are identical to c++ and cxx.

The c89 utility and xlc utility invoke the binder by default, unless the output file of the link-editing phase (-o option) is a PDS, in which case the prelinker is used.

Note: -V does not cause all listings to be emitted when you invoke the compiler using xlc. Use, for example, -qsource or -qlist instead.