🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Mark Charalambous Tue, 26 Jan 1993 02:06
"Hands On Learning" (C++) compiler error
#1419
Author: Mark Charalambous
Date: Tue, 26 Jan 1993 02:06
43 lines
1831 bytes
Hello

I'm working on the exercises in Volume 5 of "C++ Object-Oriented Programming"
and had the following problem.

(Section 2)
I copied the code for ex2.c from the Answers directory and received the
following errors, including the internal compiler error which requests
that you be informed:

avatar% make ex2
g++   -target sun4 -c -o string.o string.c
ar rv libpre_wind.a string.o
a - string.o
ar: creating libpre_wind.a
rm -f string.o
g++   -target sun4 -c -o point.o point.c
ar rv libpre_wind.a point.o
a - point.o
rm -f point.o
touch Display_med.h
g++   -target sun4 -c -o display_med.o display_med.c
display_med.c: In method `void  Display_medium::add_line (const class Point&, co
nst class Point&, long unsigned int)':
display_med.c:26: warning: implicit declaration of function `abs'
ar rv libpre_wind.a display_med.o
a - display_med.o
rm -f display_med.o
touch Screen.h
g++   -target sun4 -c -o screen.o screen.c
In file included from screen.c:2:
Screen.h:36: warning: class `Screen' has virtual functions but non-virtual destr
uctor
screen.c: In method `class Point Screen::size ()const ':
screen.c:20: Internal compiler error.
screen.c:20: Please report this to `bug-g++@prep.ai.mit.edu'.
*** Error code 1
make: Fatal error: Command failed for target `libpre_wind.a(screen.o)'

Thanks in advance
Mark Charalambous
mc@vicorp.com
413-586-4144
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads