[omniORB] Linux-generated headers don't compile on Windows

Matej Kenda matej.kenda at hermes.si
Thu Nov 13 16:35:54 GMT 2003


Hi,

I have compiled omniORB from the latest sources on Linux (SUSE 8) and
(by accident) copied the generated header files to the directory, which
is used to compile omniORB on Windows.

Linux-generated headers don't compile on Windows, but it the change to
make them compile is simple: some lines have to be #ifdef-ed out:

* corbaidl_defs.hh:1627

#ifdef HAS_LongDouble

_CORBA_MODULE_VAR _dyn_attr const CORBA::TypeCode_ptr _tc_LongDoubleSeq;

class LongDoubleSeq_var;

// ....

#endif


* corbaidl_operators.hh:127

#ifdef HAS_LongDouble

extern void operator <<= (CORBA::Any& _a, const CORBA::LongDoubleSeq& _s);
inline void operator <<= (CORBA::Any& _a, CORBA::LongDoubleSeq* _sp) {
  _a <<= *_sp;
  delete _sp;
}
extern _CORBA_Boolean operator >>= (const CORBA::Any& _a, CORBA::LongDoubleSeq*& _sp);
extern _CORBA_Boolean operator >>= (const CORBA::Any& _a, const CORBA::LongDoubleSeq*& _sp);

#endif


Is it too late for 4.0.3 to make the change in omniidl compiler that
will generate platform-independent header files?

Regards,

Matej

-- 
Matej Kenda, Lead Engineer
HERMES SoftLab (www.hermes-softlab.com)
Erjavčeva 2, 5000 Nova Gorica, Slovenia




More information about the omniORB-list mailing list