Internal compiler error
Scott Barron
sbarron@vvm.com
Mon Jul 27 21:22:00 GMT 1998
Hello,
I get the following error when trying to comple the Qwt widget set (an
extension to the Qt toolkit):
qwt_knob.cpp: In method `void QwtKnob::drawMarker(class QPainter *, double,
const class QColor &)':
qwt_knob.cpp:452: Internal compiler error.
qwt_knob.cpp:452: Please submit a full bug report to `egcs-bugs@cygnus.com'.
make: *** [qwt_knob.o] Error 1
I am using egcs-2.90.29 980515 (egcs-1.0.3 release), Linux 2.0.35,
libc5.4.44, and Qt 1.40. I have succesfully compiled this package before with
a previous egcs release (1.0.3a I believe, though I can not say for sure).
Below is the method which it errors out on while compiling:
void QwtKnob::drawMarker(QPainter *p, double arc, const QColor &c)
{
QPen pn;
int radius;
double rb,re;
double rarc;
rarc = arc * M_PI / 180.0;
double ca = cos(rarc);
double sa = - sin(rarc);
radius = d_kRect.width() / 2 - d_borderWidth;
if (radius < 3) radius = 3;
int ym = d_kRect.y() + radius + d_borderWidth;
int xm = d_kRect.x() + radius + d_borderWidth;
switch(d_symbol)
{
case Dot:
p->setBrush(c);
p->setPen(NoPen);
rb = double(qwtMax(radius - 4 - d_dotWidth / 2, 0));
p->drawEllipse(xm - int(rint(sa * rb)) - d_dotWidth / 2,
ym - int(rint(ca * rb)) - d_dotWidth / 2,
d_dotWidth, d_dotWidth);
break;
case Line:
pn.setColor(c);
pn.setWidth(2);
p->setPen(pn);
rb = qwtMax(double((radius - 4) / 3.0), 0.0);
re = qwtMax(double(radius - 4), 0.0);
p->drawLine( xm - int(rint(sa * rb)),
ym - int(rint(ca * rb)),
xm - int(rint(sa * re)),
ym - int(rint(ca * re)));
break;
}
}
^^^
This is line 452.
Any light you can shed on this error would be greatly appreciated. I
have also noticed at times I will get a similar "Interal compiler error" but I
will just restart the compilation and it will run smoothly. I'm not sure if
the information I've provided is enough, so if more is needed, I can provide
it. Thank you for your time.
-Scott
More information about the Gcc-bugs
mailing list