Article View: gnu.g++.bug
Article #1419"Hands On Learning" (C++) compiler error
From: Mark Charalambous
Date: Tue, 26 Jan 1993 02:06
Date: Tue, 26 Jan 1993 02:06
43 lines
1831 bytes
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
Technical Details
Message-ID:
<9301251703.AA17433@vicorp.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!vicorp.COM!mcShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!vicorp.COM!mc From: mc@vicorp.COM (Mark Charalambous) Newsgroups: gnu.g++.bug Subject: "Hands On Learning" (C++) compiler error Date: 25 Jan 1993 21:06:08 -0500 Organization: GNUs Not Usenet Lines: 44 Sender: daemon@cis.ohio-state.edu Approved: bug-g++@prep.ai.mit.edu Distribution: gnu Message-ID: <9301251703.AA17433@vicorp.com>