RedHat complex.h broken?
Glenn W. Bach
glenn@dodgson.wonderland.caltech.edu
Fri Jun 5 15:10:00 GMT 1998
I installed egcs-1.0.3 and now anything that includes complex.h fails. Is
There a replacement for this and similar files that I should be using?
Thanks
Glenn W. Bach
PMA Network/Systems Manager
California Institute of Technology
-------------- results -------------
In file included from /usr/include/g++/std/complex.h:7,
from /usr/include/g++/complex.h:5,
from junk.cc:1:
/usr/include/g++/std/complext.h:57: warning: friend declaration `FLOAT real(const class complex<FLOAT> &)'
/usr/include/g++/std/complext.h:57: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:57: warning: unless you compile with -fguiding-decls
/usr/include/g++/std/complext.h:57: warning: or add <> after the function name
/usr/include/g++/std/complext.h:58: warning: friend declaration `FLOAT imag(const class complex<FLOAT> &)'
/usr/include/g++/std/complext.h:58: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:59: warning: friend declaration `class complex<FLOAT> operator +(const class complex<FLOAT> &, const class complex<FLOAT> &)'
/usr/include/g++/std/complext.h:59: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:60: warning: friend declaration `class complex<FLOAT> operator +(const class complex<FLOAT> &, FLOAT)'
/usr/include/g++/std/complext.h:60: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:61: warning: friend declaration `class complex<FLOAT> operator +(FLOAT, const class complex<FLOAT> &)'
/usr/include/g++/std/complext.h:61: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:62: warning: friend declaration `class complex<FLOAT> operator -(const class complex<FLOAT> &, const class complex<FLOAT> &)'
/usr/include/g++/std/complext.h:62: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:63: warning: friend declaration `class complex<FLOAT> operator -(const class complex<FLOAT> &, FLOAT)'
/usr/include/g++/std/complext.h:63: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:64: warning: friend declaration `class complex<FLOAT> operator -(FLOAT, const class complex<FLOAT> &)'
/usr/include/g++/std/complext.h:64: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:65: warning: friend declaration `class complex<FLOAT> operator *(const class complex<FLOAT> &, const class complex<FLOAT> &)'
/usr/include/g++/std/complext.h:65: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:66: warning: friend declaration `class complex<FLOAT> operator *(const class complex<FLOAT> &, FLOAT)'
/usr/include/g++/std/complext.h:66: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:67: warning: friend declaration `class complex<FLOAT> operator *(FLOAT, const class complex<FLOAT> &)'
/usr/include/g++/std/complext.h:67: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:68: warning: friend declaration `class complex<FLOAT> operator /(const class complex<FLOAT> &, const class complex<FLOAT> &)'
/usr/include/g++/std/complext.h:68: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:69: warning: friend declaration `class complex<FLOAT> operator /(const class complex<FLOAT> &, FLOAT)'
/usr/include/g++/std/complext.h:69: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:70: warning: friend declaration `class complex<FLOAT> operator /(FLOAT, const class complex<FLOAT> &)'
/usr/include/g++/std/complext.h:70: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:71: warning: friend declaration `bool operator ==(const class complex<FLOAT> &, const class complex<FLOAT> &)'
/usr/include/g++/std/complext.h:71: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:72: warning: friend declaration `bool operator ==(const class complex<FLOAT> &, FLOAT)'
/usr/include/g++/std/complext.h:72: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:73: warning: friend declaration `bool operator ==(FLOAT, const class complex<FLOAT> &)'
/usr/include/g++/std/complext.h:73: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:74: warning: friend declaration `bool operator !=(const class complex<FLOAT> &, const class complex<FLOAT> &)'
/usr/include/g++/std/complext.h:74: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:75: warning: friend declaration `bool operator !=(const class complex<FLOAT> &, FLOAT)'
/usr/include/g++/std/complext.h:75: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:76: warning: friend declaration `bool operator !=(FLOAT, const class complex<FLOAT> &)'
/usr/include/g++/std/complext.h:76: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:77: warning: friend declaration `class complex<FLOAT> polar(FLOAT, FLOAT)'
/usr/include/g++/std/complext.h:77: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:78: warning: friend declaration `class complex<FLOAT> pow(const class complex<FLOAT> &, const class complex<FLOAT> &)'
/usr/include/g++/std/complext.h:78: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:79: warning: friend declaration `class complex<FLOAT> pow(const class complex<FLOAT> &, FLOAT)'
/usr/include/g++/std/complext.h:79: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:80: warning: friend declaration `class complex<FLOAT> pow(const class complex<FLOAT> &, int)'
/usr/include/g++/std/complext.h:80: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:81: warning: friend declaration `class complex<FLOAT> pow(FLOAT, const class complex<FLOAT> &)'
/usr/include/g++/std/complext.h:81: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:82: `istream' is neither function nor method; cannot be declared friend
/usr/include/g++/std/complext.h:82: parse error before `&'
/usr/include/g++/std/complext.h:83: `ostream' is neither function nor method; cannot be declared friend
/usr/include/g++/std/complext.h:83: parse error before `&'
/usr/include/g++/std/complext.h:121: parse error before `{'
/usr/include/g++/std/complext.h:127: parse error before `{'
/usr/include/g++/std/complext.h:133: parse error before `{'
/usr/include/g++/std/complext.h:139: parse error before `{'
/usr/include/g++/std/complext.h:145: parse error before `{'
/usr/include/g++/std/complext.h:151: parse error before `{'
/usr/include/g++/std/complext.h:157: parse error before `{'
/usr/include/g++/std/complext.h:163: parse error before `{'
/usr/include/g++/std/complext.h:169: parse error before `{'
/usr/include/g++/std/complext.h:176: parse error before `{'
/usr/include/g++/std/complext.h:182: parse error before `{'
/usr/include/g++/std/complext.h:188: parse error before `{'
/usr/include/g++/std/complext.h:194: parse error before `{'
/usr/include/g++/std/complext.h:200: parse error before `{'
/usr/include/g++/std/complext.h:206: parse error before `{'
/usr/include/g++/std/complext.h:212: parse error before `{'
/usr/include/g++/std/complext.h:218: parse error before `{'
/usr/include/g++/std/complext.h:224: parse error before `{'
/usr/include/g++/std/complext.h:230: parse error before `{'
/usr/include/g++/std/complext.h:236: parse error before `{'
/usr/include/g++/std/complext.h:245: parse error before `{'
/usr/include/g++/std/complext.h:251: parse error before `{'
/usr/include/g++/std/complext.h:257: parse error before `{'
/usr/include/g++/std/complext.h:263: parse error before `{'
/usr/include/g++/std/complext.h:269: parse error before `{'
/usr/include/g++/std/complext.h:306: parse error before `}'
More information about the Gcc-bugs
mailing list