This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
The attached files don't compile. The error messages I get are:
g++ -c -Wall ErrorEllipse.c++
ErrorEllipse.c++: In constructor `ErrorEllipse::ErrorEllipse()':
ErrorEllipse.c++:9: anachronistic old style base class initializer
ErrorEllipse.c++:9: base class initializer specified, but no base class to
initialize
ErrorEllipse.c++:10: anachronistic old style base class initializer
ErrorEllipse.c++:10: base class initializer specified, but no base class
to initialize
ErrorEllipse.c++: In constructor `ErrorEllipse::ErrorEllipse(double,
double, double)':
ErrorEllipse.c++:16: invalid operands of types `double' and `int' to
binary `operator>>'
ErrorEllipse.c++:16: anachronistic old style base class initializer
ErrorEllipse.c++:16: base class initializer specified, but no base class
to nitialize
ErrorEllipse.c++:17: invalid operands of types `double' and `int' to
binary `operator&'
ErrorEllipse.c++:17: anachronistic old style base class initializer
ErrorEllipse.c++:17: base class initializer specified, but no base class
to initialize
However, if I change "major" (declared in ErrorEllipse.h line 28) to
anything else (majorAxisLen, majorAxis, majorA, etc) half the error
messages go away. Changing "minor" (same file, line 29) in a similar
manner makes the other half of the messages go away. A 3rd variable
(orientation) of the same type, declared in the same place makes it thru
unscathed.
As far as I can tell neither "major" nor "minor" are keywords.
Platform:
Dell Dimension XPS T700r
uname -a says:
Linux harpy 2.2.17-14 #1 Mon Feb 5 17:53:36 EST 2001 i686 unknown
gcc -v says:
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/specs
Configured with: ./configure
Thread model: single
gcc version 3.0.3
No mods to the compiler source.
--
Al Dunstan, Software Engineer
OptiMetrics, Inc.
3115 Professional Drive
Ann Arbor, MI 48104-5131
Attachment:
ErrorEllipse.c++
Description: File attachment
Attachment:
ErrorEllipse.h
Description: File attachment
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |