Let's start by looking at some things you should consider when you start to write a program for
the QNX Neutrino RTOS.
Choosing the version of the OS
Whether you're using the command line or the IDE, you can install multiple versions of QNX SDP and build programs for multiple versions of QNX Neutrino.
Making your code more portable
To help you create portable applications, the QNX Neutrino RTOS lets you compile for specific standards and include OS-specific code.
Cross-development
In this section, we'll describe how to compile and debug a QNX Neutrino system. Your QNX Neutrino system might be anything from a deeply embedded turnkey system to a powerful multiprocessor server. You'll develop the code to implement your system using development tools running on a supported cross-development platform.
Using libraries
When you're developing code, you almost always make use of a library, a collection of code modules that you or someone else has already developed (and hopefully debugged).
Linking your modules
To link your application against a library, use the -l option to qcc, omitting the lib prefix and any extension from the library's name. For example, to link against libsocket, specify -l socket.
Auditing builds
QNX provides tools that you can use to gather information about build artifacts, including which shared libraries a binary needs, the package it belongs to, and the command line options that were used to build it.