Perfect, I will expand the wiki page while I develop my code if I find issues and potential problems.<br><br>Xavi<br><br><div class="gmail_quote">2012/5/5 Markus Neteler <span dir="ltr">&lt;<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Sat, May 5, 2012 at 1:19 PM, Xavier Rubio &lt;<a href="mailto:xrubio@gmail.com">xrubio@gmail.com</a>&gt; wrote:<br>

&gt; Hi, thanks for your answers. Markus, I compared the compilation of<br>
&gt; &quot;r.example&quot; with my own system and realized that the only difference was the<br>
&gt; compiler (gcc or g++). Compiling my code with gcc worked, so the problem is<br>
&gt; the fact that I was developing C++ code to call a C function (the binary<br>
&gt; symbols are different, so it explains the errors).<br>
&gt; Fix this problem was rather easy; I specified the compiler that the gis.h<br>
&gt; include is C code:<br>
&gt;<br>
&gt; extern &quot;C&quot;<br>
&gt; {<br>
&gt; #include &lt;grass/gis.h&gt;<br>
&gt; }<br>
&gt;<br>
&gt; and it worked, just in case other people finds the same problem.<br>
<br>
</div>Glad you found it. I have added a note to<br>
<a href="http://grass.osgeo.org/wiki/GRASS_and_C++" target="_blank">http://grass.osgeo.org/wiki/GRASS_and_C++</a><br>
<br>
(please expand that Wiki page)<br>
<span class="HOEnZb"><font color="#888888"><br>
Markus<br>
</font></span></blockquote></div><br>