<div dir="ltr"><div><div><div><div>Ok.<br></div>I am getting smarter.<br><br></div>Forget what I said about using the -std=c99 option to get Eclipse to recognize the _() macro. The syntax error being reported by the Eclipse editor (CDT parser) is caused be the definition of PACKAGE on the gcc command line.<br><br>-DPACKAGE=\""grassmods"\"<br><br>Eclipse invokes the GRASS 'make default' tool and builds the system or module with no problem. The Eclipse parser/indexer builds its database of symbols and cross-references by scanning all the C/C++ source code, Python scripts and make output.<br><br></div><div>It learns that the value of PACKAGE is the string:<br><br>\""grassmods"\"<br></div><div><br></div><div><br>This value is OK when building the system or module because the build is performed within a MSYS shell.<br><br></div><div>The Eclipse editor and CDT parser likes this value:<br><br>"grassmods"<br><br></div><div>I am not suggesting any kind of change. The _() macro works. I can successfully compile and from within Eclipse. The 'syntax error' is more of a nuisance than anything else. Maybe I can figure out how to tell Eclipse to ignore this syntax.<br><br>Eclipse 4.5 Mars for GRASS development on Windows 7 is working very well. I can browse,
build, run, debug GRASS C/C+ modules and Python scripts.<br><br>I will document this on the wiki.<br><br></div><div><br></div>Rob Parsons<br></div><div>Raleigh NC<br></div><div><br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 3, 2015 at 8:57 AM, Markus Neteler <span dir="ltr"><<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Aug 3, 2015 at 2:26 PM, Rob Parsons <<a href="mailto:jrobparsons@gmail.com">jrobparsons@gmail.com</a>> wrote:<br>
> Telling Eclipse that the C dialect is c99 (-std=c99) solved the problem. The<br>
> macro is now recognized.<br>
<br>
</span>Excellent. Please consider to update the page<br>
<a href="http://grasswiki.osgeo.org/wiki/Eclipse" rel="noreferrer" target="_blank">http://grasswiki.osgeo.org/wiki/Eclipse</a><br>
<br>
in order to help others with the hint(s) which easily get lost in the<br>
email archive.<br>
<span class="HOEnZb"><font color="#888888"><br>
Markus<br>
</font></span></blockquote></div><br></div>