Thread: flex 2.5.4a and g++3.3 problem
03-19-2004, 05:44 PM #1soundandyGuestflex 2.5.4a and g++3.3 problem
I am new to MAC OS X. Please help me with the following compiling error.
I have flex 2.5.4a and g++3.3 on my MAC OS X 10.3 machine. When I tried to compile my tool on the MAC
I got the following error:
In file included from /usr/include/FlexLexer.h:51,
/usr/include/gcc/darwin/3.3/c++/backward/iostream.h:36: error: using
declaration `istream' introduced ambiguous type `istream'
lex.yy.cc: In member function `virtual int yyFlexLexer::yylex()':
lex.yy.cc:1245: error: cannot convert `std::istream*' to `istream*' in
lex.yy.cc:893: warning: label `find_rule' defined but not used
lex.yy.cc: In member function `void yyFlexLexer::yy_load_buffer_state()':
lex.yy.cc:1776: error: cannot convert `istream*' to `std::istream*' in
lex.yy.cc: In member function `void
lex.yy.cc:1827: error: cannot convert `std::istream*' to `istream*' in
Can anyone give me help? I know that g++2.95 can be compatible with flex, but for certain reason, I can not do that.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By Wheado in forum OS X - Operating SystemReplies: 0Last Post: 07-15-2012, 12:25 PM
By Duch in forum Apple NotebooksReplies: 5Last Post: 02-21-2009, 10:10 PM
By Richie_Gecko in forum OS X - Development and DarwinReplies: 3Last Post: 04-04-2007, 12:15 AM
By Digger in forum Switcher HangoutReplies: 2Last Post: 02-24-2007, 12:32 AM