Running XL C/C++ from a non-default location

The compiler invocation commands are installed to /target_dir/opt/IBM/xlC/13.1.0/bin/, where target_dir is the location of the compiler as set by the -b flag during the non-default installation.

About this task

For example, if you installed XL C/C++ to the /compiler/xlcpp directory, you can run the compiler by using this command:
/compiler/xlcpp/opt/IBM/xlC/13.1.0/bin/xlC -o hello_C hello.C

Alternatively, you can create a shortcut to the compiler invocations, as described in Creating shortcuts to the XL C/C++ invocation commands.