[omniORB] Cannot get omniorb 3.0.2 to compile on Solaris 2.6

Duncan Grisby dgrisby@uk.research.att.com
Fri, 13 Oct 2000 12:34:59 +0100


On Friday 13 October, Alwyn Schoeman wrote:

> Using Solaris 2.6.
> Sun Workshop C++ 5.0   thus CXX_RUNTIME=-lCrun....
> Python 2.0beta2
> 
> It seems to be that std::cout symbol is a problem.... don't know solution
> though...  libCrun doesn't have std::cout......

How peculiar. omniidl doesn't use cout at all, so I don't know why it
thinks it needs it. It might be because iostream.h is accidentally
#included. Try this small patch to remove the include, and see if that
helps.

Cheers,

Duncan.


Index: src/tool/omniidl/cxx/CORBA_sysdep.h
===================================================================
RCS file: /project/omni/cvsroot/omni/src/tool/omniidl/cxx/CORBA_sysdep.h,v
retrieving revision 1.3.2.2
diff -u -r1.3.2.2 CORBA_sysdep.h
--- src/tool/omniidl/cxx/CORBA_sysdep.h	2000/08/17 09:00:53	1.3.2.2
+++ src/tool/omniidl/cxx/CORBA_sysdep.h	2000/10/13 11:30:45
@@ -728,12 +728,6 @@
 #define OMNI_CONSTRTYPE_FIX_VAR(T) typedef T::_var_type T##_var;
 #endif
 
-#ifndef USE_omniORB_logStream
-// New stubs use omniORB::logStream. Old stubs still need cerr. Include
-// the necessary iostream header if that is the case.
-#include <iostream.h>
-#endif
-
 // #define ENABLE_CLIENT_IR_SUPPORT
 // Define ENABLE_CLIENT_IR_SUPPORT to use as client to an Interface Repository


-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --