Adding include directives

To insert the appropriate #include directive for any documented QNX Neutrino function:
  1. In the C/C++ editor, double-click the function name, but don't highlight the parentheses, or any leading tabs or spaces.
  2. Right-click and select Source > Add Include.
    The IDE automatically adds the #include statement to the top of the file, if it isn't already there.

The IDE can infer the header file of a function or class from its use, and then automatically insert the appropriate #include directive. For example, if you create a file with a main method and a call to printf, you can right-click on the call to printf and select Source > Add Include. The IDE infers that printf is defined in the stdio.h header and it automatically inserts the #include directive for that header.