RE: ORBit-2.0-cpp problem with mulitple interface inheritance



Thanks. If nobody has any ideas about this now then please do add your test
case to bugzilla.

Murray Cumming
murrayc usa net
www.murrayc.com 

> -----Original Message-----
> From: Bowie Owens [mailto:bowie owens csiro au] 
> Sent: Donnerstag, 6. März 2003 23:44
> To: orbitcpp-list gnome org
> Subject: ORBit-2.0-cpp problem with mulitple interface inheritance
> 
> 
> Hi,
> 
> I am having some difficulty with ORBit cpp (orbitcpp-1.3.4, 
> ORBit2-2.6.0) and multiple inheritance of interfaces. I have the 
> following file mi.idl:
> 
> module foo {
>  
>         interface Symbol {
>                 string name();
>         };
>  
>         interface Hash {
>                 long hash();
>         };
>  
>         interface Variable : Symbol, Hash {
>         };
> };
> 
> Compiling the idl and then the stubs file causes problems 
> with multiple 
> definition of Hash::hash() where the second definition should 
> probably 
> be Variable::hash().
> 
> [owe043 phi bug]$ orbit-idl-2 mi.idl ; orbit-idl-2 -l cpp 
> mi.idl ; g++ 
> -c mi-cpp.cc `pkg-config ORBit-2.0-cpp --cflags`
> orbit-idl-2 2.6.0 compiling
>   mode, show preprocessor errors, passes: stubs skels common headers 
> skel_impl imodule
>  
> orbit-idl-2 2.6.0 compiling
>   mode, show preprocessor errors, passes: stubs skels common headers 
> skel_impl imodule
>  
>  
> ** (process:4194): WARNING **: orbit_idl_backend_func
>  
> In file included from mi-cpp.cc:7:
> mi-cpp-stubs.cc:60: redefinition of `Long 
> _orbitcpp::stub::foo::Hash::hash()'
> mi-cpp-stubs.cc:36: `Long _orbitcpp::stub::foo::Hash::hash()' 
> previously
>    defined here
> mi-cpp-stubs.cc:60: no `Long 
> _orbitcpp::stub::foo::Hash::hash()' member
>    function declared in class `_orbitcpp::stub::foo::Hash'
> mi-cpp-stubs.cc:63: confused by earlier errors, bailing out
> 
> 
> I have attached mi-cpp-stubs.cc (and mi-cpp-stubs.h) and listed below 
> some of the relevant configuration details (I have been using 
> GARNOME to 
> build GNOME 2.2).
> 
> [owe043 phi bug]$ orbit-idl-2 --version
> orbit-idl-2 2.6.0 - serial 19
>  
> [owe043 phi bug]$ pkg-config ORBit-2.0-cpp --cflags
> -DORBIT2=1 -pthread 
> -I/local_scratch/owe043/garnome/include/orbitcpp-2.0 
> -I/local_scratch/owe043/garnome/include/orbit-2.0 
> -I/local_scratch/owe043/garnome/include/linc-1.0 
> -I/local_scratch/owe043/garnome/include/glib-2.0 
> -I/local_scratch/owe043/garnome/lib/glib-2.0/include
> 
> 
> -- 
> Bowie Owens
> 
> CSIRO Mathematical & Information Sciences
> phone  : +61 3 9545 8055
> fax    : +61 3 9545 8080
> mobile : 0425 729 875
> email  : Bowie Owens csiro au
> 
> 
> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]