This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Compile errors
- To: egcs-bugs at cygnus dot com
- Subject: Compile errors
- From: John Lindal <jafl at alice dot wonderland dot caltech dot edu>
- Date: Thu, 4 Jun 1998 12:58:56 -0700
While trying to compile JX using egcs-1.0.3, I encountered the attached
errors. Since they occur in a system file, my guess is that this is a
problem with either the header file or the compiler. My file, JComplex.h,
merely includes complex.h at the beginning of the file.
As an additional note, when I compile /usr/include/g++/std/complext.h
without -fguiding-decls, I get the warnings attached as part 3 of this
message. This suggests that the header file has simply not been updated to
work with egcs.
The same types of warnings are also generated by /usr/include/g++/iomanip.h
Sincerely,
John Lindal
--------------
g++ -Wall -Wno-unused -Werror -fno-implicit-templates -fno-rtti -O0 -D_J_UNIX -fguiding-decls -D_LOOSE_KERNEL_NAMES -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_GNU_SOURCE -g -fPIC -I- -I../jcore -I../jparser -I../jx -I../j3d -I../Mesa/include -I/home/mad_hatter/jafl/local/JX-1.1.15/jlib/ACE_wrappers -I../regex -I../gif -I../X11 -c ../jcore/JComplex.cc -o ../jcore/JComplex.o
In file included from /usr/include/g++/std/complex.h:7,
from /usr/include/g++/complex.h:5,
from ../jcore/JComplex.h:20,
from ../jcore/JComplex.cc:10:
/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 `}'
--------------
/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: warning: friend declaration `class istream & operator >>(class istream &, class complex<FLOAT> &)'
/usr/include/g++/std/complext.h:82: warning: will not be treated as a template instantiation
/usr/include/g++/std/complext.h:83: warning: friend declaration `class ostream & operator <<(class ostream &, const class complex<FLOAT> &)'
/usr/include/g++/std/complext.h:83: warning: will not be treated as a template instantiation