[orbitcpp-list] problems compiling orbitcpp-examples-0.2 with orbitcpp-0.30.4 under redhat 7
Status: Beta
Brought to you by:
philipd
|
From: Marcus R. <mar...@de...> - 2002-04-18 11:54:10
|
I have tried to compile the orbitcpp examples, but failed.
I don't have any idea whats wrong, if it's a bug or if i'm doing
something stupid.
I get the following error:
c++ -g -O0 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/include/orbit-1.0 -o client client.o
generated/libhelloworldStubs.a -L/usr/lib /usr/lib/liborbitcpp.so
-lstdc++ -lORBit -lIIOP -lORBitutil /usr/lib/libglib.so -lnsl -lm
c++ -DHAVE_DLFCN_H=1 -I. -I. -Igenerated -I.. -I/usr/include/glib-1.2
-I/usr/lib/glib/include -I/usr/include/orbit-1.0 -g -O0
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0
-c server.cc
In file included from server.cc:3:
helloworld-impl.hh:13: looser throw specifier for `virtual char
*hellomodule::Hello_impl::helloWorld (const char *)'
generated/helloworld-cpp-skels.hh:46: overriding `virtual char
*POA_hellomodule::Hello::helloWorld (const char *) throw
(CORBA::SystemException)'
make[2]: *** [server.o] Error 1
make[2]: Leaving directory `/tmp/orbitcpp-examples-0.2/helloworld'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/orbitcpp-examples-0.2/helloworld'
make: *** [all-recursive] Error 1
......
Code from the generated file....
namespace POA_hellomodule {
class Hello : public ::hellomodule::Hello, public virtual
PortableServer::ServantBase {
....
....
....
// C++ interface
public:
Hello();
virtual ~Hello() { }
::PortableServer_Servant *_orbitcpp_get_c_servant() {
return reinterpret_cast<
::PortableServer_Servant *>(&m_target);
}
::hellomodule::Hello_ptr _this() {
PortableServer::POA_var rootPOA =
_default_POA();
PortableServer::ObjectId_var oid =
rootPOA->activate_object(this);
CORBA::Object_ptr object =
rootPOA->id_to_reference(oid);
return reinterpret_cast<
::_orbitcpp::stub::hellomodule::Hello *>(object);
}
virtual char *helloWorld(char const *greeting)
throw (CORBA::SystemException) = 0;
};
}
Happy for any help.
/* Marcus Rosell
mar...@de... */
|