help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why is there this warning?


From: Balaco Baco
Subject: Why is there this warning?
Date: Fri, 02 Sep 2016 13:40:30 -0300
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

Take the file [file.y], compile it to generate tab.[ch] files and the compile it (without linking) with gcc. It gives a warning in this step. Can fix this warning?

Commands used and their output:

====
$ bison -vd file.y
$ gcc -Wall -c file.tab.c
file.tab.c:1349: warning: implicit declaration of function ‘yylex’
# A command that works, but it is out of scope for this message
$ gcc -Wall file.tab.o [other object files] -lfl
$
====

Is this warning something expected? I was thinking about adding yylex() prototype to file.y, but I do not know what it is, and I could not find it in documentation.

Attachment: file.y
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]