Hola,<div><br></div><div>no se si es que no has añadido los <b>includes</b> en los fichero que incluyes pero seguramente te falte añadir:</div><div><br></div><div>#include &lt;Ice/Ice.h&gt; // corresponde a la libreria ICE</div>
<div>#include &lt;Printer.h&gt; // corresponde a la interfaz compilada con slice2cpp</div><div><br></div><div>Un saludo.<br><br>Álex.<br><br><div class="gmail_quote">El 15 de febrero de 2013 07:14, Oscar Garcia <span dir="ltr">&lt;<a href="mailto:oscar.robotica@linaresdigital.com" target="_blank">oscar.robotica@linaresdigital.com</a>&gt;</span> escribió:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Buenos días. Observa tu propio código:<br>
<br>
El 14/02/2013 23:28, jgandia escribió:<br>
<div class="im">&gt;         try {<br>
&gt;         ic = Ice::initialize(argc, argv);<br>
&gt;<br>
&gt; Ice::ObjectAdapterPtr adapter =<br>
&gt; ic-&gt;createObjectAdapterWithEndpoints(&quot;SimplePrinterAdapter&quot;, &quot;default -p<br>
&gt; 10000&quot;);<br>
&gt;<br>
&gt; Ice::ObjectPtr object = new PrinterI;<br>
&gt;<br>
&gt; adapter-&gt;add(object, ic-&gt;stringToIdentity(&quot;SimplePrinter&quot;));<br>
&gt;     adapter-&gt;activate();<br>
&gt;        ic-&gt;waitForShutdown();<br>
&gt;     } //try<br>
&gt;<br>
&gt;     } catch (const Ice::Exception&amp; e) {<br>
<br>
<br>
</div>¿No te parece extraño cerrar el &quot;try&quot; e inmediatamente cerrar de nuevo<br>
con una cláusula &quot;catch&quot;? O quitas el cierre de &quot;try&quot; inesperado o<br>
quitas los dos &quot;catch&quot; posteriores.<br>
<div class="im"><br>
<br>
&gt; Me salen los siguientes errores:<br>
&gt; Server.cpp:1:34: error: expected class-name before ‘{’ token<br>
<br>
<br>
</div>Todos los errores son de emparejamiento de bloques. Posiblemente en<br>
cuanto arregles ese problema todo te debería ir mejor.<br>
<br>
Un saludo.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Jde-developers mailing list<br>
<a href="mailto:Jde-developers@gsyc.es">Jde-developers@gsyc.es</a><br>
<a href="http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers" target="_blank">http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Alejandro Hernández Cordero<div><br></div><div><a href="http://www.linkedin.com/in/ahcorde/en" target="_blank"><img src="http://www.linkedin.com/favicon.ico"></a> <a href="https://twitter.com/ahcorde" target="_blank"><img src="http://www.twitter.com/favicon.ico"></a> <a href="https://plus.google.com/u/0/114434050324725472734/posts" target="_blank"><img src="https://ssl.gstatic.com/s2/oz/images/favicon.ico"></a> <a href="http://github.com/ahcorde" target="_blank"><img src="https://github.com/favicon.ico"></a><br>
</div><div><br></div><div>Play and visit my Curriculum vitae -&gt; <a href="https://googledrive.com/host/0BytBL_SySiIjX19Pd1o5dlZaRHc/Game.html" target="_blank">https://googledrive.com/host/0BytBL_SySiIjX19Pd1o5dlZaRHc/Game.html</a></div>

</div>