zrafa / xinu-avr

the Xinu OS for AVR atmega328p devices (e.g. Arduino)
http://se.fi.uncoma.edu.ar/xinu-avr
Other
30 stars 6 forks source link

Fails to compile under macOS #5

Open jluke1 opened 1 year ago

jluke1 commented 1 year ago

y.tab.c:1427:16: error: implicit declaration of function 'yylex' [-Werror,-Wimplicit-function-declaration] yychar = YYLEX; macOS 10.15.7 xcode 12.4 bison 2.3 flex 2.5.35

jluke1 commented 1 year ago

fixed by adding the patch 20a21,22

int yylex (void);

to config.y Also in config/Makefile LFLAGS = -ll instead of LFLAGS = -lf for macOS flex library