---
name: "omniidl2"
section: "1"
platform: "linux"
package: "omniorb"
version: "2.5.0-5"
release: "Debian 2.1 (Slink)"
platforms: ["linux"]
url: "https://new.carta.tech/omniidl2"
---

# omniidl2(1)

omniORB2 idl compiler

## NAME

omniidl2 - omniORB2 idl compiler

## SYNOPSIS

**omniidl2** \[ options \]\* file \[file\]\*

## DESCRIPTION

The omniidl2 command invokes the omniORB2 idl compiler. It takes CORBA IDL definitions from the input file(s) and produces C++ stubs. For each input file, two files are produced: a header and a stub. Together they provide the basis to implement CORBA objects with interfaces defined in the IDL  definitions. By default, the two files are named by appending suffix **.hh** and **SK.cc** to the base name of the input respectively. These suffixes can be changed by command line options (see below).

This idl compiler produces stubs that conform to the IDL to C++ language mapping defined by the CORBA specification version 2.0.

The input files are processed by the CPP preprocessor before they are parsed by the compiler.

## OPTIONS

- **-Dname\[=value\]**

  defines name for preprocessor

- **-E**

  runs preprocessor only, prints on stdout

- **-I dir**

  includes dir in search path for preprocessor

- **-U***name*

  undefines name for preprocessor

- **-V**

  prints version information and exits

- **-s suffix**

  specifies non-default suffix for stub file

- **-h suffix**

  specifies non-default suffix for header file

- **-u**

  prints the usage message and exits

- **-v**

  traces compilation stages

- **-w**

  suppresses IDL compiler warning messages

- **-l**

  generates code required by LifeCycle service

- **-a**

  generates code required by type any

## ACKNOWLEDGEMENT

The compiler front end is based on the source code donated by SunSoft, Inc., Mountain View, California, to OMG. The release is identified by the version number 1.3.

## AUTHOR

Sai-Lai Lo, Olivetti  Oracle Research Laboratory
