Console Manager Callable Interface › Callable Routines › CMUserShutdown › Environment
When linking your routine's object modules, you must also link against the Xt and X11 libraries, regardless of whether the routine is actually using X11.