[omniORB] IDL modules

Stefan Naewe stefan.naewe at atlas-elektronik.com
Thu Aug 14 16:48:47 BST 2008


On 8/14/2008 3:28 PM, Hamilton Temple wrote:
> Hello there,
> 
> I have been working with the following idl definition:
> 
> interface Add{
>    double add(in string a, in string b, in string c);
> };
> 
> In the server I use the following instruction to activate the object id:
> 
> AddImpl * addImpl=new AddImpl();
> PortableServer::ObjectId_var myObjID = myPOA->activate_object(addImpl);
> 
> I modified the idl as follows:
> 
> module Operations{
>    interface Add{
>        double add(in string a, in string b, in string c);
>    };
> };
> 
> I defined the corresponding namespace Operations in the implementation, and
> added the line "using namespace Operations;" at the beginning of the server
> code.
> 
> Now compilation fails with the following errors:
> 
> server.cpp: In function 'int main(int, char**)':
> server.cpp:64: error: no matching function for call to
> 'PortableServer::POA::activate_object(Operations::AddImpl*&)'
> /usr/include/omniORB4/poa.h:552: note: candidates are: virtual
> PortableServer::ObjectId*
> PortableServer::POA::activate_object(PortableServer::ServantBase*)
> server.cpp:67: error: no matching function for call to
> 'PortableServer::POA::servant_to_reference(Operations::AddImpl*&)'
> /usr/include/omniORB4/poa.h:566: note: candidates are: virtual
> CORBA::Object*
> PortableServer::POA::servant_to_reference(PortableServer::ServantBase*)
> 
> Any hints would be much appreciated. Thank you,
> 
> Hamilton

How is your class AddImpl defined ?


S.
-- 
----------------------------------------------------------------
Dipl.-Inform. Stefan Naewe                 ATLAS Elektronik GmbH
                                                   Dept.: PTA5 3
phone: +49-(0)421-457-1378          Sebaldsbruecker Heerstr. 235
fax:   +49-(0)421-457-1702                          28305 Bremen
----------------------------------------------------------------
/dev/random says: Why do cats have canine teeth?



More information about the omniORB-list mailing list