Re: [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 13:35:31
|
tor 2002-04-18 klockan 14.13 skrev Sam Couter: > Marcus Rosell <mar...@de...> wrote: > > 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. > > That's a bug. In helloworld-impl.cc and helloworld-impl.hh, the > declarations for the hellowWorld() method are incorrect. Just add the > appropriate throws clause yourself: > > char* helloWorld(const char* greeting) > throws (CORBA::SystemException); I changed the declaration of helloWorld in "helloworld-impl.hh", but: ---------- helloworld-impl.cc:7: declaration of `char *hellomodule::Hello_impl::helloWorld (const char *)' throws different exceptions helloworld-impl.hh:14: than previous declaration `char *hellomodule::Hello_impl::helloWorld (const char *) throw (CORBA::SystemException)' ---------- Know we have two implementations of "hellomodule::Hello_impl::helloWorld", one in the .hh file and one in the .cc file. why can't the interface declaration of helloWorld in POA_hellomodule::Hello be overridden in derived class? > What compiler are you using? This bug hasn't been reported before. v2.96, the one Redhat is shipping with. I know people says it's crappy, but somehow they have compiled the rest of the system with it :-) > -- > Sam "Eddie" Couter | mailto:sc...@bi... > Debian Developer | mailto:ed...@de... > | jabber:sa...@ja... > OpenPGP fingerprint: A46B 9BB5 3148 7BEA 1F05 5BD5 8530 03AE DE89 C75C |