목록Yacc (1)
살아가는 이야기
bison: undefined reference to yyerror
Bison은 YACC와 호환 가능하지만 간혹 이 글 제목과 같은 문제를 일으키는 경우가 있다. 이 문제를 해결하기 위해서는 지원루틴 부분(Bison 입력 파일의 끝 부분)에 다음을 복사해서 넣는다. (Symptom: Bison reports the error message "undefined reference to yyerror."Solution: To solve this problem, copy the following function definitions to the auxiliary procedure section, i.e. at the end of the bison input file.) %% main() { yyparse(); } yyerror(char *s) { printf("%s\n", s)..
컴퓨터, 풀어그림
2008. 10. 7. 07:34