I am working on writing a compiler code to compile certain intermediate codes generated by GCC. I have written
1) A Lexical analyzer (".L" file) and
2) A Parser (".Y" file)

To compile these files, I use "FLEX" and "YACC/BISON" from the GNU tool set. It works fine in Cygwin under windows. But, when I try to "make" it under "i686-apple-darwin8", it throws a bunch of errors and terminates.

I don't know why that happens even though the Flex and Bison are installed in my MacBook (intel). I want to know if, at all, we can use these tools on darwin ?

Can anyone help me to fix this ?