Re: [Fink-devel] problems with iostream.h

2003-02-26 Thread Moritz Zumbühl
It seems to be a generell flex lexer problem. FlexLexer 2.5.4a-2 
produce code who's not compatible to GCC 3.1.
(Has something to do with the includes and namespaces and I found also 
a strange problem with a forward declaration...)
After some hours stumbling through the code I solved the problems by 
hand. "make" runs now fine...

Has someone a idea how to solve the problem(s?) with flexlexer?

(please excuse my horrible english!)

On Mittwoch, Februar 26, 2003, at 01:11  Uhr, Benjamin Reed wrote:

On Tuesday, February 25, 2003, at 06:03 PM, Moritz Zumbühl wrote:

hello,

/usr/include/gcc/darwin/3.1/g++-v3/backward/iostream.h:36: using 
declaration `
   istream' introduced ambiguous type `istream'
tokenizer.cc: In member function `virtual int yyFlexLexer::yylex()':
...

(I added "using namespace std;" to /usr/include/FlexLexer.h and 
tokenizer.cc)
How are you including iostream?  A lot of times these types of things 
are cleaned up by using "#include " instead of (the 
deprecated) "#include ".  Not sure if that would help in 
your particular case.

---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel



---
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] problems with iostream.h

2003-02-25 Thread Benjamin Reed
On Tuesday, February 25, 2003, at 06:03 PM, Moritz Zumbühl wrote:

hello,

/usr/include/gcc/darwin/3.1/g++-v3/backward/iostream.h:36: using 
declaration `
   istream' introduced ambiguous type `istream'
tokenizer.cc: In member function `virtual int yyFlexLexer::yylex()':
...

(I added "using namespace std;" to /usr/include/FlexLexer.h and 
tokenizer.cc)
How are you including iostream?  A lot of times these types of things 
are cleaned up by using "#include " instead of (the 
deprecated) "#include ".  Not sure if that would help in 
your particular case.

---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel


[Fink-devel] problems with iostream.h

2003-02-25 Thread Moritz Zumbühl
hello,

I try to build umbrello (uml.sf.net), but I get these errors when run 
the command "make".

g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/sw//include -I/sw/include/ 
-I/usr/X11R6/include   -DQT_THREAD_SUPPORT   -O2 -fno-exceptions 
-fno-check-new  -c -o tokenizer.o `test -f 'tokenizer.cc' || echo 
'./'`tokenizer.cc
In file included from /sw/include/FlexLexer.h:47,
 from tokenizer.cc:240:
/usr/include/gcc/darwin/3.1/g++-v3/backward/iostream.h:36: using 
declaration `
   istream' introduced ambiguous type `istream'
tokenizer.cc: In member function `virtual int yyFlexLexer::yylex()':
tokenizer.cc:1311: cannot convert `std::istream*' to `istream*' in 
assignment
tokenizer.cc: In member function `void 
yyFlexLexer::yy_load_buffer_state()':
tokenizer.cc:1842: cannot convert `istream*' to `std::istream*' in 
assignment
tokenizer.cc: In member function `void
   yyFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*)':
tokenizer.cc:1893: cannot convert `std::istream*' to `istream*' in 
assignment
make[3]: *** [tokenizer.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I think this is a compiler problem (I'm using gcc 3.1, apple dev tools 
dec), but am a I'm not sure (I'm a newbie). Has anyone a idea?
(I added "using namespace std;" to /usr/include/FlexLexer.h and 
tokenizer.cc)

cheers mo
--
Moritz Zumbühl
Mühlebergstr. 81a
8910 Affoltern a/A
Switzerland
[EMAIL PROTECTED]
"source-codes sind wie spielkarten. jeder schaut dem anderen gerne
in die spielhand, aber niemand lässt sich gerne in die karten schauen!"


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel