1
votes

I have followed all the steps described here: How to compile LEX/YACC files on Windows?

But I am getting this error:

enter image description here

1

1 Answers

2
votes

The messages you received are only warnings from the C compiler (gcc) and are not fatal errors. The program will execute and function correctly if you invoke the binary by typing hello at the command prompt.

You can make the warnings go away by adding this to the top of the Hello.y file:

%{
#include <stdio.h>
#include <stdlib.h>
%}

(This seems like an omission in the answer you linked to....)