4.1. Prepare Your Development Environment

This section describes how to set up your development environment for Connext Micro applications, such as the required environment variables, compilers, compiler definitions, and libraries.

4.1.1. Set environment variables

The RTIMEHOME environment variable must be set to the installation directory path for RTI Connext Micro. If you installed RTI Connext with default settings, RTI Connext Micro will be here: <path_to_connext_dds_installation>/rti_connext_dds-<version>/rti_connext_micro-<version>. If you copied RTI Connext Micro to another place, set RTIMEHOME to point to that location.

4.1.2. Add required preprocessor flags

All Connext Micro applications require the following preprocessor defines:

-IRTIMEHOME/include
-IRTIMEHOME/include/rti_me

Add the following preprocessor defines, according to your platform and compiler:

Using MSVSCC:

-DOSAPI_CC_DEF_H=osapi/osapi_cc_msvsc.h
-DRTI_WIN32

Using clang:

-DOSAPI_CC_DEF_H=osapi/osapi_cc_clang.h
-DRTI_DARWIN

Using GCC:

-DOSAPI_CC_DEF_H=osapi/osapi_cc_gcc.h
-DRTI_LINUX

Using QCC:

-DOSAPI_CC_DEF_H=osapi/osapi_cc_qcc.h
-DRTI_QNX