help-bison
[Top][All Lists]
Advanced

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

Re: (No Subject)


From: Tim Van Holder
Subject: Re: (No Subject)
Date: Sun, 20 Oct 2002 12:14:02 +0200

> Hi,
>  I get this error when i say make. could anybody please tell 
> me, why do I get this error??
> 
> ~/thesis1/parser> make
> bison -v xquery.hand_written.y
> xquery.hand_written.y contains 5 shift/reduce conflicts.
> mv xquery.hand_written.tab.c xquery.hand_written.c
> gcc -g -I/public/cse/5317-501/gc6.0/include -c xquery.hand_written.c
> gcc -g -I/public/cse/5317-501/gc6.0/include main.c 
> xquery.hand_written.o /public
> /cse/5317-501/gc6.0/gc.a -o xquery.hand_written
> ld: fatal: symbol `yyparse' is multiply-defined:
>         (file /var/tmp/ccIzEzwl.o and file xquery.hand_written.o);
> ld: fatal: File processing errors. No output written to 
> xquery.hand_written
> collect2: ld returned 1 exit status
> make: *** [xquery.hand_written] Error 1

Normally, when asking question of this nature, it is customary to
include some or all of the sources, so people can make an educated
guess as to what the problem might be.
The problem here is not a bison problem though; it seems that the
parser's object file (xquery.hand_written.o) and your main.c file both
have a 'yyparse' symbol; this would have been much more obvious if you
had done:

gcc -g -I/public/cse/5317-501/gc6.0/include -c xquery.hand_written.c
gcc -g -I/public/cse/5317-501/gc6.0/include -c main.c
gcc -g -I/public/cse/5317-501/gc6.0/include main.o xquery.hand_written.o
/public






reply via email to

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