jiri-subscribed-lists wrote:
Hello.
I am trying to compile a demonstrating application from the book
Henning, Vinoski: Advanced CORBA Programming with C++
with orbitcpp-1.3.8, ORBit2-2.8.3, gcc-3.3.2.
example.idl:
struct TimeOfDay {
short hour; // 0 - 23
short minute; // 0 - 59
short second; // 0 - 59
};
interface Time {
TimeOfDay get_gmt();
};
A minor limitation of orbitcpp is that it can't generate legitimate C++
code for IDL which does not have a top level module. Please wrap the
above IDL code in a module:
module X {
...
};
Orbitcpp uses the C binding to implement the C++ binding. So you must also execute:$ orbit-idl-2 -l cpp example.idl
orbit-idl-2 example.idlThis will generate a .h and some .c files that must be compiled and linked with the C++ code.
-- Bowie Owens CSIRO Mathematical & Information Sciences phone : +61 3 9545 8055 fax : +61 3 9545 8080 mobile : 0425 729 875 email : Bowie Owens csiro au