[Flex-help] Section 18 C++ compilation of C code incorrect
flex is a tool for generating scanners
Brought to you by:
wlestes
From: Arthur S. <asc...@at...> - 2013-11-01 23:12:46
|
Section 18 "The first way is to simply compile a scanner generated by flex using a C++ compiler instead of a C compiler. You should not encounter any compilation errors (see Reporting Bugs)." Compilation errors occur because flex input must be changed to flex yyinput. Change the manual, the C code must be altered to use yyinput() instead of input(). The flex statement which causes this condition is given below. #ifdef __cplusplus static int yyinput (void) #else static int input (void) #endif |