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