[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rpl_fprintf error
From: |
Kati Baker |
Subject: |
rpl_fprintf error |
Date: |
Mon, 29 Sep 2014 12:05:53 -0400 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- rpl_fprintf error,
Kati Baker <=