cygwin - byacc %defines syntax error when compiling with make command -


i trying run ymer tool in windows 10 platform. have installed g++, gcc, yacc via cygwin. after configure command, when running make command compile application, generates following error.

ps c:\ymer> make /bin/sh ./ylwrap src/grammar.yy y.tab.c src/grammar.cc y.tab.h echo src/grammar.cc | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/ y.output src/grammar.output -- byacc -d     byacc: e - line 514 of "/cygdrive/c/ymer/src/grammar.yy", syntax error     %defines     ^     makefile:2467: recipe target 'src/grammar.cc' failed     make: *** [src/grammar.cc] error 1 

it seems grammar.yy file causes problem. knows how solve problem. btw not familiar neither yacc nor make files. new cygwin well.

thank you,

the %defines declaration bison-specific (not part of standard yacc). file grammar.yy contains bison features byacc implements, not 1 of those. (from description in manual page, seems equivalent standard command-line option -d, making less useful).


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -