home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17623 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.8 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!hyperion!desire.wright.edu!fheitkamp
  2. From: fheitkamp@desire.wright.edu
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Help with GCC and G++
  5. Message-ID: <1992Dec20.100431.6300@desire.wright.edu>
  6. Date: 20 Dec 92 10:04:31 EST
  7. References: <1992Dec18.131626.834@fwi.uva.nl> <1992Dec19.152246.6286@desire.wright.edu>
  8. Organization:  Wright State University 
  9. Lines: 39
  10.  
  11. In article <1992Dec19.152246.6286@desire.wright.edu>, fheitkamp@desire.wright.edu writes:
  12. > In article <1992Dec18.131626.834@fwi.uva.nl>, solorzan@fwi.uva.nl (Valik Solorzano (I88)) writes:
  13. >> Hai everyone,
  14. >> I'm having problems trying to compile a C++ program with gcc on my Amiga.
  15. >> Every time I try I get a lot of errors, and the same program I did compile
  16. >> on a Sun Workstation with gcc any I din't get any errors.
  17. >> 
  18. >> Is this because I'm not using the C++ version of gcc or what. Because when
  19. >> I try to use g++ on my Amiga I get the message 'g++ not executable'.
  20. >> 
  21. >> Could someone tell me what i'm doing wrong.
  22. >> I use the gcc port for the Amiga, version 2.2.2.
  23. >     You need to make sure your program has a .cc extension otherwise
  24. >     gcc thinks it's a C program instead of C++.  I have gotton a C++
  25. >     program to compile using the above suggestion and the following
  26. >     command line: gcc [filename].cc -lg++ -o [filename]
  27. >     I'm still getting an Error message:  undefined symbol
  28. >     ___new_handler referenced from text segment.
  29. >     Does anyone know this one?
  30.  
  31.     I can answer my own question:  You need the gcc222-fix1.lha patch.
  32.     I applied this to the gcc: and now it works!  (I only compiled a
  33.     small program though, but hey...)
  34.  
  35. >> 
  36. >> Thanks to all
  37. >> 
  38. >> You can contact me at:
  39. >> 
  40. >> solorzan@carol.fwi.uva.nl
  41. >> 
  42. >> ------Valik----
  43. > Fred Heitkamp ** Not an organization **
  44. Me again
  45.  
  46.