[omniORB] ...must implement the inherited pure virtual method
'omniServant::_do_get_interface'
Duncan Grisby
duncan at grisby.org
Mon Nov 14 14:43:26 GMT 2011
On Sat, 2011-11-12 at 00:36 +0100, Michael Lipp wrote:
> I' following the example from the manual. I generated my code with
> -Wpexample. However, the generated code cannot be compiled. After fixing
> the obvious problems (include statement generated with <> instead of ""
> for local header and missing "using namespace std") one bug remains: my
> server class "must implement the inherited pure virtual method
> 'omniServant::_do_get_interface'".
>
> I have seen that ServantBase provides a private implementation of
> _do_get_interface'. But obviously this is not sufficient, as omniServant
> declares this method as public.
_do_get_interface is not something you need to implement. If the
compiler thinks you do, something has gone wrong.
What exactly have you done? You are right that some uses of the std
namespace are missing, which you can fix with a using declaration, but
aside from that the generated example code compiles fine for me.
What was your input IDL? What platform? What compiler?
Cheers,
Duncan.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
More information about the omniORB-list
mailing list