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"><<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</a>></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 <<a href="mailto:xrubio@gmail.com">xrubio@gmail.com</a>> wrote:<br>
> Hi, thanks for your answers. Markus, I compared the compilation of<br>
> "r.example" with my own system and realized that the only difference was the<br>
> compiler (gcc or g++). Compiling my code with gcc worked, so the problem is<br>
> the fact that I was developing C++ code to call a C function (the binary<br>
> symbols are different, so it explains the errors).<br>
> Fix this problem was rather easy; I specified the compiler that the gis.h<br>
> include is C code:<br>
><br>
> extern "C"<br>
> {<br>
> #include <grass/gis.h><br>
> }<br>
><br>
> 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>