home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / g / bug / 2331 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.7 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!vicorp.COM!mc
  2. From: mc@vicorp.COM (Mark Charalambous)
  3. Newsgroups: gnu.g++.bug
  4. Subject: "Hands On Learning" (C++) compiler error
  5. Date: 25 Jan 1993 21:06:08 -0500
  6. Organization: GNUs Not Usenet
  7. Lines: 44
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-g++@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <9301251703.AA17433@vicorp.com>
  12.  
  13. Hello
  14.  
  15. I'm working on the exercises in Volume 5 of "C++ Object-Oriented Programming"
  16. and had the following problem.
  17.  
  18. (Section 2)
  19. I copied the code for ex2.c from the Answers directory and received the
  20. following errors, including the internal compiler error which requests
  21. that you be informed:
  22.  
  23. avatar% make ex2
  24. g++   -target sun4 -c -o string.o string.c
  25. ar rv libpre_wind.a string.o
  26. a - string.o
  27. ar: creating libpre_wind.a
  28. rm -f string.o
  29. g++   -target sun4 -c -o point.o point.c
  30. ar rv libpre_wind.a point.o
  31. a - point.o
  32. rm -f point.o
  33. touch Display_med.h
  34. g++   -target sun4 -c -o display_med.o display_med.c
  35. display_med.c: In method `void  Display_medium::add_line (const class Point&, co
  36. nst class Point&, long unsigned int)':
  37. display_med.c:26: warning: implicit declaration of function `abs'
  38. ar rv libpre_wind.a display_med.o
  39. a - display_med.o
  40. rm -f display_med.o
  41. touch Screen.h
  42. g++   -target sun4 -c -o screen.o screen.c
  43. In file included from screen.c:2:
  44. Screen.h:36: warning: class `Screen' has virtual functions but non-virtual destr
  45. uctor
  46. screen.c: In method `class Point Screen::size ()const ':
  47. screen.c:20: Internal compiler error.
  48. screen.c:20: Please report this to `bug-g++@prep.ai.mit.edu'.
  49. *** Error code 1
  50. make: Fatal error: Command failed for target `libpre_wind.a(screen.o)'
  51.  
  52. Thanks in advance
  53. Mark Charalambous
  54. mc@vicorp.com
  55. 413-586-4144
  56.  
  57.