All,

Hello, I'm an undergrad CS student from West Virginia University, and I'm
taking Compiler Construction this semester.

In using Bison (I am using 3.0.2), I tried to run and compile an example my
professor created in class which kept giving me this rpl_fprintf error
about the yyerror function.

It wasn't until my professor found this page:
http://courses.homelinux.org/compilers/bison-lab.html

That I was able to successfully compile and run my lex and yacc files.

I had to include

int yyerror(char const *message)
{
  fputs(message, stderr);
  fputc('\n', stderr);
  return 0;
}

right below my other C function prototypes and header files within my .y
file to make it work. It took my professor and I a few days to figure out.

I am running Ubuntu 13.04, lex 2.5.35, and bison 3.0.2

Cheers,
Kati Baker
_______________________________________________
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to