please ignore the previous message. i was my mistake, since i had include some work from another guy, who had "using namespace std" and also defined a "min" and "max" - it causes a conflict.
sorry about the trouble! -----Oprindelig meddelelse----- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sendt: 9. december 2004 22:21 Til: Jacob Schmidt Madsen Cc: [EMAIL PROTECTED] Emne: Re: bug in /usr/include/c++/3.4/bits/fstream.tcc "Jacob Schmidt Madsen" <[EMAIL PROTECTED]> writes: | error: | /usr/include/c++/3.4/bits/fstream.tcc: In member function `virtual | typename std::basic_filebuf<_CharT, _Traits>::int_type | std::basic_filebuf<_CharT, _Traits>::underflow()': | /usr/include/c++/3.4/bits/fstream.tcc:277: error: expected | unqualified-id before '(' token | /usr/include/c++/3.4/bits/fstream.tcc: In member function `virtual | std::streamsize std::basic_filebuf<_CharT, _Traits>::xsputn(const | _CharT*, std::streamsize)': | /usr/include/c++/3.4/bits/fstream.tcc:518: error: expected | unqualified-id before '(' token | | solution found at: | http://gcc.gnu.org/ml/gcc-bugs/2004-07/msg02128.html | | fix: | change line 277 in /usr/include/c++/3.4/bits/fstream.tcc | from: __ilen = std::min(__avail, __buflen); | to: __ilen = min(__avail, __buflen); I cannot see any reason why that would be a fix. -- Gaby