QNX_TARGET
This environment variable is mandatory when linking on nto-qnx*_iosock platforms. It is used to determine an -L path to pass to the QNX linker.
You should set this variable by running source qnxsdp-env.sh.
See the QNX docs for more background information.