help-bison
[Top][All Lists]
Advanced

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

Re: std::string as YYSTYPE segfaults


From: Anthony DeRobertis
Subject: Re: std::string as YYSTYPE segfaults
Date: 28 Feb 2002 23:25:06 -0500

On Thu, 2002-02-28 at 18:08, Vitaliy Ziskin wrote:
>     What does this error mean:
> 
> /tmp/cc1YK6zZ.o: In function `yyparse':
> /usr/lib/bison.simple:249: multiple definition of `yyparse'
> /tmp/ccp07cId.o:/usr/lib/bison.simple:249: first defined here
> collect2: ld returned 1 exit status
> make: *** [LexParser] Error 1

It means that yyparse has been defined twice. e.g.,:

T yyparse(...) { ... }
T yyparse(...) { ... }

Look for that happening in the files on the command line. Or tell bison
to turn off line number information with --no-lines to get a better
error message.





reply via email to

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