[GRASS-dev] compilation error - macro _n()

Martin Landa landa.martin at gmail.com
Tue May 19 01:18:18 PDT 2015


Hi,

2015-05-18 14:34 GMT+02:00 Glynn Clements <glynn at gclements.plus.com>:

> Boost isn't using any _n() macro; that's the C++ syntax for
> initialising a member variable named _n upon construction.
>
> At least, it isn't trying to use a macro. The fact that there happens
> to be a macro called _n() in existence at that point is beyond its
> control.

thanks for clarification.

> It's GRASS' fault for using a reserved name (_n() was added in r59156,
> r59189, now 137 occurrences in 52 files), and particularly for using
> it as a macro.

Any suggestion to solve this issue?

> Including the CGAL headers before the GRASS headers would avoid this
> specific issue.

Right, fixed in r65279. Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa


More information about the grass-dev mailing list