You must include the appropriate Connext DDS header files, which are listed in Table 10.1 Header Files to Include for Connext DDS (All Architectures). The header files that need to be included depend on the API being used.
Connext DDS API |
Header Files |
C |
#include “ndds/ndds_c.h” |
C++ |
#include “ndds/ndds_cpp.h” |
C++/CLI, C#, Java |
none |
For the compiler to find the included files, the path to the appropriate include directories must be provided. Table 10.2 Include Paths for Compilation (All Architectures) lists the appropriate include path for use with the compiler. The exact path depends on where you installed Connext DDS. See Paths Mentioned in Documentation.
Connext DDS API |
Include Path Directories |
C and C++ |
<NDDSHOME>/include <NDDSHOME>/include/ndds |
C++/CLI, C#, Java |
none |
The header files that define the data types you want to use within the application also need to be included. For example, Table 10.3 Header Files to Include for Data Types (All Architectures) lists the files to be include for type “Foo” (these are the filenames generated by RTI Code Generator, described in 3. Data Types and DDS Data Samples).
Connext DDS API |
User Data Type Header Files |
C and C++ |
#include “Foo.h” #include “FooSupport.h” |
C++/CLI, C#, Java |
none |
© 2020 RTI