how to multi idl files to C++ code ?

2 posts / 0 new
Last post
Offline
Last seen: 5 years 3 months ago
Joined: 12/19/2018
Posts: 2
how to multi idl files to C++ code ?

I'm using RTI 5.3.1 - ( windows ) code generator to generate my idl to C++ code. 

The C++ language that i generate to is "modern C++ (C++11) "  - but i have 2 idl files that one of them is include in the other. 

How to do it ? 

 

Keywords:
Offline
Last seen: 5 years 3 months ago
Joined: 02/03/2017
Posts: 2

If I am understanding you correctly you wish to compile 2 IDL files (where one is included #include idl 2 in the other), then compile your source code with the resulting interface (.h) and source (.cxx) files from RTIDDSGEN?

It is simplest to place both IDL files in a single directory, compile first the IDL file (without the include, and output source files into same directory) then compile the IDL file that includes the first file and again output to same directory. I believe this is what you are looking for, however, it has been a while since I have done this so if you have any problems let me know and I will complete the process to test and remind myself.