I have followed all the steps described here: How to compile LEX/YACC files on Windows?
But I am getting this error:
I have followed all the steps described here: How to compile LEX/YACC files on Windows?
But I am getting this error:
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....)