Table of Contents

fetchyahoo

yacc

t'oublie pas de passer ton .lex dans flex et de faire un zoli #include “lex.yy.c” dans ton .y ? :)

http://sourceware.org/ml/automake-prs/2004-q3/msg00010.html

# rzr@nrv:rc/ # :) # pwd ; make
/usr/local/src/debian/whitedune-0.29beta483/src/swt/rc
yacc -d rcparse.y
yacc: 2 shift/reduce conflicts.
mv -f y.tab.c rcparse.c
i486-linux-gnu-gcc -g  -I../include   -c -o rcparse.o rcparse.c
:   -t rclex.l > rclex.c
i486-linux-gnu-gcc -g  -I../include   -c -o rclex.o rclex.c
i486-linux-gnu-gcc -g  -I../include   -c -o rc.o rc.c
i486-linux-gnu-gcc rcparse.o rclex.o rc.o -o rc
rcparse.o: In function `yyerror':
/usr/local/src/debian/whitedune-0.29beta483/src/swt/rc/rcparse.y:581: undefined reference to `rc_lineno'
/usr/local/src/debian/whitedune-0.29beta483/src/swt/rc/rcparse.y:581: undefined reference to `rc_filename'
rcparse.o: In function `yyparse':
/usr/local/src/debian/whitedune-0.29beta483/src/swt/rc/y.tab.c:1274: undefined reference to `yylex'
rcparse.o: In function `yyparse':
/usr/local/src/debian/whitedune-0.29beta483/src/swt/rc/rcparse.y:155: undefined reference to `yytext'
rcparse.o: In function `yyparse':
/usr/local/src/debian/whitedune-0.29beta483/src/swt/rc/y.tab.c:1886: undefined reference to `yylex'
rc.o: In function `rcparse_warning':
/usr/local/src/debian/whitedune-0.29beta483/src/swt/rc/rc.c:47: undefined reference to `rc_lineno'
/usr/local/src/debian/whitedune-0.29beta483/src/swt/rc/rc.c:47: undefined reference to `rc_filename'
collect2: ld returned 1 exit status

MORE

parse.txt · Last modified: 2022/11/30 20:29 by rzr
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki