[GRASS5] r.binfer compile problem
neteler at geog.uni-hannover.de
Tue Apr 25 04:39:32 EDT 2000
it seems that you idea is perfect:
at top of file. The yylineno def is now:
int yylineno = 1;
Then it compiles on both platforms I have. BTW: flex is on
both, but one box is SuSe6.2, the other SuSe6.4 Linux distribution.
Thanks for your hint!
On Tue, Apr 18, 2000 at 04:17:10PM +0200, Michel Wurtz - ENGEES/CEREG wrote:
> Markus Neteler wrote:
> > Hi there,
> > thanks for you comments. The problem is: I need a general
> > solution valid for all platforms without any further
> > changes
> > :-))
> > So it must be some #ifdef stuff, I feel.
> The problem is : some version of lex define yylineno, others
> don't (flex is a "good" example). With Linux, you can install
> the genuine flex analyser and/or the AT&T lex compatible...
> Therfore I don't believe that #ifdef works, unless you have
> some define indication the presence of the -l flag. If yoy suppress
> the line #ifndef linux, it will work on your second system, but
> compilation will crash on the first one (double definition of yylineno) !
> Maybe adding the line
> %option yylineno
> (or %option lexcompat, which have the same result as the -l option)
> may help if it doesn't hurt the classic AT&T lex program ?
> Michel Wurtz ENGEES - CEREG
> 1, quai Koch - BP 1039, F-67070 STRASBOURG cedex
> Tel: +33 03.88.24.82.45 Fax: +33 03.88.37.04.97
Dipl.-Geogr. Markus Neteler * University of Hannover
Institute of Physical Geography and Landscape Ecology
Schneiderberg 50 * D-30167 Hannover * Germany
Tel: ++49-(0)511-762-4494 Fax: -3984
If you want to unsubscribe from GRASS Development
Team internal mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'
More information about the grass-dev