Adding libraries

Updated: May 06, 2022

Our sample application doesn't use libraries but if you want to build an application that does, you need to link those libraries to your application. The way you do this in the IDE depends on the type of makefile you're using.

If your project uses standard makefiles, you must edit them and add libraries by setting the appropriate flags (command options) in the compiling and linking commands. For details on the required command options, see the q++, qcc entry in the Utilities Reference. If your project uses recursive makefiles, you can configure library linking through the QNX C/C++ Project properties.

Note: When developing libraries, you can link other libraries into their projects. This is done the same way as with application projects, for both standard and recursive makefiles.