After you have written an interface definition, run the IDL compiler to generate header and stub files. The compiler offers many options that, for example, allow you to choose what C compiler or C preprocessor commands are run, what directories are searched for imported files, which of the possible output files are generated, and how the output files are named.
The greet.idl interface definition can be compiled by the following command:
idl greet.idl
This compilation produces a header file (greet.h), a client stub file (greet_cstub.o), and a server stub file (greet_sstub.o. For complete information on running the IDL compiler, see the idl(1rpc) reference page.