Determining the shared libraries and DLLs are required for an executable

To determine which shared libraries are required, you'll need to look at the NEEDED section. For DLLs, see Optimizing all libraries in your image. For the most common cases, use the following:


Note: The QNX System Builder won't automatically include the necessary DLLs as these aren't listed in the NEEDED section for a given binary.

Finally, you can use the Korn shell, and include DL_DEBUG=libs in your command line to print the list of libraries and DLLs being loaded at program startup. If you don't have a library that's being opened or resolved, you'll receive an error message. For more information about the values for DL_DEBUG, see the entry for dlopen in the Neutrino Library Reference.