[Flex-help] unresolved external symbol _yylex referenced in function _yyparse
flex is a tool for generating scanners
Brought to you by:
wlestes
From: Angelika K. <A.K...@gm...> - 2008-10-28 21:19:48
|
hello! I've got this bison file: (i always get following error: unresolved external symbol _yylex referenced in function _yyparse) vhdlBison.y --------------- %{ #define YYSTYPE double #include <malloc.h> #include "vhdlbison_tab.h" extern int yylex(void); extern yylex (void); void yyerror (char *s); /* Called by yyparse on error */ %} %token NUMBER %% input : list '\n' | input list ; list : list ',' NUMBER { printf ("\t= %.2f\n", $3); } | NUMBER { printf ("\t= %.2f\n", $1); } ; %% main () { yylex(); yyparse (); } void yyerror (char *s) /* Called by yyparse on error */ { printf ("\terror: %s\n", s); } -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser |