To build executables with code coverage enabled:
- In the Project Explorer view, right-click your project and select
Properties. The properties dialog for your project
appears.
- In the left pane, select QNX C/C++ Project.
- In the Build Options pane, check Build with Code
Coverage.
- In the Build Variants tab, check only one build variant.
Note: If more than one build variant is checked, the IDE displays an error
message and disables the OK button.
- Click OK.
- In the Project Explorer view, right-click your project and select
Clean….
- Be sure that your project is selected, and check the Start a build
immediately box, and then click OK to rebuild
your project.