From 475a8a7c444eaffcdfb59fcc5b3d123e15d53f6b Mon Sep 17 00:00:00 2001 From: rahuel Date: Thu, 9 Feb 2006 15:39:34 +0000 Subject: [PATCH] include of Python.h must be the last one and generally some system includes must be added before as : #include #include #include #include PortableServer::POA_var poa instead of _ptr --- src/Container/Container_i.cxx | 40 ++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/src/Container/Container_i.cxx b/src/Container/Container_i.cxx index 48b3ac787..96779e09f 100644 --- a/src/Container/Container_i.cxx +++ b/src/Container/Container_i.cxx @@ -27,20 +27,10 @@ // $Header$ //#define private public -#include -#ifndef WNT -#include CORBA_SERVER_HEADER(SALOME_Component) -#else -#include -#endif -#include // must be before Python.h ! -#include -#include "SALOME_Container_i.hxx" -#include "SALOME_Component_i.hxx" -#include "SALOME_NamingService.hxx" -#include "OpUtil.hxx" #include #include +#include +#include #ifndef WNT #include #include @@ -50,9 +40,23 @@ #include int SIGUSR1 = 1000; #endif -#include "Container_init_python.hxx" #include "utilities.h" +#include +#ifndef WNT +#include CORBA_SERVER_HEADER(SALOME_Component) +#else +#include +#endif +#include // must be before Python.h ! +#include "SALOME_Container_i.hxx" +#include "SALOME_Component_i.hxx" +#include "SALOME_NamingService.hxx" +#include "OpUtil.hxx" + +#include +#include "Container_init_python.hxx" + using namespace std; bool _Sleeping = false ; @@ -96,7 +100,7 @@ Engines_Container_i::Engines_Container_i () : //============================================================================= Engines_Container_i::Engines_Container_i (CORBA::ORB_ptr orb, - PortableServer::POA_ptr poa, + PortableServer::POA_var poa, char *containerName , int argc , char* argv[], bool activAndRegist, @@ -307,10 +311,12 @@ Engines_Container_i::load_component_Library(const char* componentName) } void* handle; -#ifndef WNT - handle = dlopen( impl_name.c_str() , RTLD_LAZY ) ; -#else +#if defined( WNT ) handle = dlopen( impl_name.c_str() , 0 ) ; +//#elif defined( __osf1__ ) +// handle = dlopen( impl_name.c_str() , RTLD_NOW ) ; +#else + handle = dlopen( impl_name.c_str() , RTLD_LAZY ) ; #endif if ( handle ) { -- 2.39.2