[omniORB] omniidl does not generate code - I'm mystified...

Frank Goenninger frgo at me.com
Sat Nov 14 10:14:30 GMT 2009


Hello all,

being a bloody beginner I am trying to get omniidl to generate code  
from the following IDL file:

-X-X-X-

#ifndef __FLEXIO__
#define __FLEXIO__

#pragma prefix "flexio.goenninger.net"

module FlexIO
{
   typedef long            rc_t;
   typedef unsigned long   operation_t;
   typedef unsigned long   data_t;
   typedef unsigned long * data_ptr;
   typedef unsigned long   device_id_t;

   interface LowLevelIO
   {
     rc_t select_device( in device_id_t device_id );

     rc_t read( in  operation_t operation,
                in  data_t      data1,
                in  data_t      data2,
                out data_ptr    rtn );

     rc_t write( in  operation_t operation,
                 in  data_t      data1,
                 in  data_t      data2 );
   };
};

#endif

-X-X-X-

omniidl gets called like this:

$ omniidl -bcxx flexio.idl

Results are:

flexio.hh:

-X-X-X-

// This file is generated by omniidl (C++ backend)- omniORB_4_2. Do  
not edit.
#ifndef __flexio_hh__
#define __flexio_hh__

#ifndef __CORBA_H_EXTERNAL_GUARD__
#include <omniORB4/CORBA.h>
#endif

#ifndef  USE_stub_in_nt_dll
# define USE_stub_in_nt_dll_NOT_DEFINED_flexio
#endif
#ifndef  USE_core_stub_in_nt_dll
# define USE_core_stub_in_nt_dll_NOT_DEFINED_flexio
#endif
#ifndef  USE_dyn_stub_in_nt_dll
# define USE_dyn_stub_in_nt_dll_NOT_DEFINED_flexio
#endif






#ifdef USE_stub_in_nt_dll
# ifndef USE_core_stub_in_nt_dll
#  define USE_core_stub_in_nt_dll
# endif
# ifndef USE_dyn_stub_in_nt_dll
#  define USE_dyn_stub_in_nt_dll
# endif
#endif

#ifdef _core_attr
# error "A local CPP macro _core_attr has already been defined."
#else
# ifdef  USE_core_stub_in_nt_dll
#  define _core_attr _OMNIORB_NTDLL_IMPORT
# else
#  define _core_attr
# endif
#endif

#ifdef _dyn_attr
# error "A local CPP macro _dyn_attr has already been defined."
#else
# ifdef  USE_dyn_stub_in_nt_dll
#  define _dyn_attr _OMNIORB_NTDLL_IMPORT
# else
#  define _dyn_attr
# endif
#endif













#undef _core_attr
#undef _dyn_attr





#ifdef   USE_stub_in_nt_dll_NOT_DEFINED_flexio
# undef  USE_stub_in_nt_dll
# undef  USE_stub_in_nt_dll_NOT_DEFINED_flexio
#endif
#ifdef   USE_core_stub_in_nt_dll_NOT_DEFINED_flexio
# undef  USE_core_stub_in_nt_dll
# undef  USE_core_stub_in_nt_dll_NOT_DEFINED_flexio
#endif
#ifdef   USE_dyn_stub_in_nt_dll_NOT_DEFINED_flexio
# undef  USE_dyn_stub_in_nt_dll
# undef  USE_dyn_stub_in_nt_dll_NOT_DEFINED_flexio
#endif

#endif  // __flexio_hh__

-X-X-X-

... with flexioSK.cc being similarly empty ...

What am I doing wrong ?? Any hint really appreciated.

Environment:
OmniORB 4.1.4, Mac OS X 10.5.8

Oh, and yes, the Echo example runs just fine !!!

Thanks again -

   Frank





More information about the omniORB-list mailing list