Running XL 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 to the /compiler/xlc directory, you can run the compiler by using this command:
/compiler/xlc/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 invocation commands.