home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #23 / NN_1992_23.iso / spool / gnu / gcc / help / 2317 < prev    next >
Encoding:
Text File  |  1992-10-12  |  904 b   |  30 lines

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!daniel_x
  3. From: daniel_x@athena.mit.edu (Daniel M Higgins)
  4. Subject: g++  classes as friends 
  5. Message-ID: <1992Oct13.010907.5696@athena.mit.edu>
  6. Sender: news@athena.mit.edu (News system)
  7. Nntp-Posting-Host: w20-575-109.mit.edu
  8. Organization: Massachusetts Institute of Technology
  9. Date: Tue, 13 Oct 1992 01:09:07 GMT
  10. Lines: 18
  11.  
  12. I tried to compile C++ code, using g++, in which I declared a class as 
  13. a friend to a class
  14.  
  15.  
  16. I got an error message of "class_name2" is not a function 
  17. and cannot be declares as a friend of "class_name1"
  18.  
  19. the code compiles eithout problems on the AT&T C++
  20.  
  21. are classes as friends illegal on the gnu g++ complier? Perhaps it is 
  22. allowed on a newer version.  I believe I used 4.5 but Im pretty stupid
  23. when it comes to computer things
  24.  
  25.  
  26. thankyou
  27.     daniel
  28.  
  29. daniel_x@athena.mit.edu
  30.