idl problems in orbitcpp 1.3.5



I am new in orbitcpp and trying to learn it through the example. I made a small modifications to the helloworld.idl and could not make it work. Can anyone tell me where I did wrong?
 
Thanks,
 
Xinfa
 
 
My idl file is like:
 
// This gets prepended to all the repoids:
#pragma prefix "PhilDawes"
                                                                                                                     
module hellomodule {
                                                                                                                       
  interface Hello {
        string helloWorld(in string greeting);
  };
};
                                                                                                                       
module hellomodule1 {
                                                                                                                       
  interface Hello1 : hellomodule::Hello {
        string helloWorld1(in string greeting);
  };
};
 
 
The result is below after I run "make":
 
 

Making all in generated
make[1]: Entering directory `/usr/src/redhat/SOURCES/orbitcpp-1.3.5/test/cpp/helloworld/generated'
orbit-idl-2 -l c ./../helloworld.idl
orbit-idl-2 2.6.0 compiling
  mode, show preprocessor errors, passes: stubs skels common headers skel_impl imodule
 
orbit-idl-2 -l cpp  --backenddir=/usr/lib/orbit-idl/idl-backends/ ./../helloworld.idl
orbit-idl-2 2.6.0 compiling
  mode, show preprocessor errors, passes: stubs skels common headers skel_impl imodule
 
gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../.. -I../../../..           -DORBIT2_INTERNAL_API
                -DORBIT2=1 -pthread -I/usr/include/orbit-2.0 -I/usr/include/linc-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include     -Igenerated   -D_ORBITCPP_TESTCODE    -g -O2 -c helloworld-common.c
g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../.. -I../../../..           -DORBIT2_INTERNAL_API
                -DORBIT2=1 -pthread -I/usr/include/orbit-2.0 -I/usr/include/linc-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include     -Igenerated   -D_ORBITCPP_TESTCODE    -g -O2 -c helloworld-cpp-common.cc
gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../.. -I../../../..           -DORBIT2_INTERNAL_API
                -DORBIT2=1 -pthread -I/usr/include/orbit-2.0 -I/usr/include/linc-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include     -Igenerated   -D_ORBITCPP_TESTCODE    -g -O2 -c helloworld-stubs.c
g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../.. -I../../../..           -DORBIT2_INTERNAL_API
                -DORBIT2=1 -pthread -I/usr/include/orbit-2.0 -I/usr/include/linc-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include     -Igenerated   -D_ORBITCPP_TESTCODE    -g -O2 -c helloworld-cpp-stubs.cc
rm -f libhelloworldStubs.a
ar cru libhelloworldStubs.a helloworld-common.o helloworld-cpp-common.o helloworld-stubs.o helloworld-cpp-stubs.o ../../../../orbitcpp/orb-cpp/libORBit-2-cpp.la
ranlib libhelloworldStubs.a
gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../.. -I../../../..           -DORBIT2_INTERNAL_API
                -DORBIT2=1 -pthread -I/usr/include/orbit-2.0 -I/usr/include/linc-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include     -Igenerated   -D_ORBITCPP_TESTCODE    -g -O2 -c helloworld-skels.c
g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../.. -I../../../..           -DORBIT2_INTERNAL_API
                -DORBIT2=1 -pthread -I/usr/include/orbit-2.0 -I/usr/include/linc-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include     -Igenerated   -D_ORBITCPP_TESTCODE    -g -O2 -c helloworld-cpp-skels.cc
In file included from helloworld-cpp-skels.cc:6:
helloworld-cpp-skels.h:63: parse error before `{' token
helloworld-cpp-skels.h:74: ISO C++ forbids declaration of `m_target' with no
   type
helloworld-cpp-skels.h:76: parse error before `protected'
helloworld-cpp-skels.h:85: parse error before `public'
helloworld-cpp-skels.h:88: destructors must be member functions
helloworld-cpp-skels.h:88: virtual outside class declaration
helloworld-cpp-skels.h:99: virtual outside class declaration
helloworld-cpp-skels.h:99: function `char* helloWorld1(const char*)' is
   initialized like a variable
helloworld-cpp-skels.h:100: parse error before `}' token
helloworld-cpp-skels.cc:90: invalid use of undefined type `class
   POA_hellomodule1::Hello1'
helloworld-cpp-common.h:91: forward declaration of `class
   POA_hellomodule1::Hello1'
helloworld-cpp-skels.cc:92: incomplete type `POA_hellomodule1::Hello1' does not
   have member `_orbitcpp_fini'
helloworld-cpp-skels.cc:94: assignment (not initialization) in declaration
helloworld-cpp-skels.cc:96: invalid use of undefined type `class
   POA_hellomodule1::Hello1'
helloworld-cpp-common.h:91: forward declaration of `class
   POA_hellomodule1::Hello1'
helloworld-cpp-skels.cc:98: incomplete type `POA_hellomodule1::Hello1' does not
   have member `_skel_helloWorld'
helloworld-cpp-skels.cc:99: assignment (not initialization) in declaration
helloworld-cpp-skels.cc:101: invalid use of undefined type `class
   POA_hellomodule1::Hello1'
helloworld-cpp-common.h:91: forward declaration of `class
   POA_hellomodule1::Hello1'
helloworld-cpp-skels.cc:103: incomplete type `POA_hellomodule1::Hello1' does
   not have member `_skel_helloWorld1'
helloworld-cpp-skels.cc:104: assignment (not initialization) in declaration
helloworld-cpp-skels.cc:106: invalid use of undefined type `class
   POA_hellomodule1::Hello1'
helloworld-cpp-common.h:91: forward declaration of `class
   POA_hellomodule1::Hello1'
helloworld-cpp-skels.cc:107: incomplete type `POA_hellomodule1::Hello1' does
   not have member `_base_epv'
helloworld-cpp-skels.cc:110: assignment (not initialization) in declaration
helloworld-cpp-skels.cc:113: invalid use of undefined type `class
   POA_hellomodule1::Hello1'
helloworld-cpp-common.h:91: forward declaration of `class
   POA_hellomodule1::Hello1'
helloworld-cpp-skels.cc: In member function `void
   POA_hellomodule1::Hello1::_orbitcpp_fini(void*, CORBA_Environment*)':
helloworld-cpp-skels.cc:118: `_orbitcpp_Servant' undeclared (first use this
   function)
helloworld-cpp-skels.cc:118: (Each undeclared identifier is reported only once
   for each function it appears in.)
helloworld-cpp-skels.cc:118: `pCppServant' undeclared (first use this function)
helloworld-cpp-skels.cc:118: parse error before `*' token
helloworld-cpp-skels.cc:120: invalid use of undefined type `class
   POA_hellomodule1::Hello1'
helloworld-cpp-common.h:91: forward declaration of `class
   POA_hellomodule1::Hello1'
helloworld-cpp-skels.cc: At global scope:
helloworld-cpp-skels.cc:124: invalid use of undefined type `class
   POA_hellomodule1::Hello1'
helloworld-cpp-common.h:91: forward declaration of `class
   POA_hellomodule1::Hello1'
helloworld-cpp-skels.cc: In member function `char*
   POA_hellomodule1::Hello1::_skel_helloWorld(void*, const char*,
   CORBA_Environment*)':
helloworld-cpp-skels.cc:126: parse error before `)' token
helloworld-cpp-skels.cc:39: `static char*
   POA_hellomodule::Hello::_skel_helloWorld(void*, const char*,
   CORBA_Environment*)' is protected
helloworld-cpp-skels.cc:127: within this context
helloworld-cpp-skels.cc: At global scope:
helloworld-cpp-skels.cc:131: invalid use of undefined type `class
   POA_hellomodule1::Hello1'
helloworld-cpp-common.h:91: forward declaration of `class
   POA_hellomodule1::Hello1'
helloworld-cpp-skels.cc: In member function `char*
   POA_hellomodule1::Hello1::_skel_helloWorld1(void*, const char*,
   CORBA_Environment*)':
helloworld-cpp-skels.cc:137: parse error before `)' token
helloworld-cpp-skels.cc:138: invalid use of undefined type `class
   POA_hellomodule1::Hello1'
helloworld-cpp-common.h:91: forward declaration of `class
   POA_hellomodule1::Hello1'
helloworld-cpp-skels.cc: At global scope:
helloworld-cpp-skels.cc:152: invalid use of undefined type `class
   POA_hellomodule1::Hello1'
helloworld-cpp-common.h:91: forward declaration of `class
   POA_hellomodule1::Hello1'
helloworld-cpp-skels.cc: In constructor `POA_hellomodule1::Hello1::Hello1()':
helloworld-cpp-skels.cc:154: request for member `m_cservant' in `m_target',
   which is of non-aggregate type `int'
helloworld-cpp-skels.cc:155: request for member `m_cservant' in `m_target',
   which is of non-aggregate type `int'
helloworld-cpp-skels.cc:158: request for member `m_cppservant' in `m_target',
   which is of non-aggregate type `int'
helloworld-cpp-skels.cc:159: request for member `m_cppimpl' in `m_target',
   which is of non-aggregate type `int'
helloworld-cpp-skels.cc: At global scope:
helloworld-cpp-skels.cc:168: invalid use of undefined type `class
   POA_hellomodule1::Hello1'
helloworld-cpp-common.h:91: forward declaration of `class
   POA_hellomodule1::Hello1'
helloworld-cpp-skels.cc: In member function
   `_orbitcpp::stub::hellomodule1::Hello1* POA_hellomodule1::Hello1::_this()':
helloworld-cpp-skels.cc:169: `_default_POA' undeclared (first use this
   function)
helloworld-cpp-skels.cc:172: no matching function for call to `
   PortableServer::POA::servant_to_id(POA_hellomodule1::Hello1* const)'
../../../../orbitcpp/orb-cpp/orbitcpp_poa.h:176: candidates are:
   PortableServer::ObjectId*
   PortableServer::POA::servant_to_id(PortableServer::ServantBase*)
helloworld-cpp-skels.cc:172: no matching function for call to `
   PortableServer::POA::activate_object(POA_hellomodule1::Hello1* const)'
../../../../orbitcpp/orb-cpp/orbitcpp_poa.h:172: candidates are:
   PortableServer::ObjectId*
   PortableServer::POA::activate_object(PortableServer::ServantBase*)
make[1]: *** [helloworld-cpp-skels.o] Error 1
make[1]: Leaving directory `/usr/src/redhat/SOURCES/orbitcpp-1.3.5/test/cpp/helloworld/generated'
make: *** [all-recursive] Error 1
 
 


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