[Flex-help] Flex C code can not be compiled in C++
flex is a tool for generating scanners
Brought to you by:
wlestes
From: slipbits <ho...@sl...> - 2023-06-23 22:01:52
|
flex 2.6.4 Win 11-x64 g++ (GCC) 11.3.0 cygwin > g++ -c -std=c++11 The function isatty() in yy_init_buffer(), a flex generated function, is not compatible in C++ and generates an error. I am working on a work-around but the issue is that this requires that the generated file can not be used as is but must be edited. Is there a work-around for this? Is there an option which can select another function instead of isatty()? The isatty() call is isatty( fileno( file ) ) where 'file' is of type FILE*. I don't know if this is also an issue. I'd prefer not to do editing if that is possible. thanks |