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

  1. Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!think.com!rpi!ghost.dsi.unimi.it!univ-lyon1.fr!chx400!bernina!wild
  2. From: wild@nessie.cs.id.ethz.ch (Markus Wild)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Help with GCC and G++
  5. Message-ID: <1992Dec20.181807.17440@bernina.ethz.ch>
  6. Date: 20 Dec 92 18:18:07 GMT
  7. References: <1992Dec18.131626.834@fwi.uva.nl> <1992Dec19.152246.6286@desire.wright.edu>
  8. Sender: news@bernina.ethz.ch (USENET News System)
  9. Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
  10. Lines: 35
  11.  
  12. In article <1992Dec19.152246.6286@desire.wright.edu> fheitkamp@desire.wright.edu writes:
  13. >In article <1992Dec18.131626.834@fwi.uva.nl>, solorzan@fwi.uva.nl (Valik Solorzano (I88)) writes:
  14. >> Hai everyone,
  15. >> I'm having problems trying to compile a C++ program with gcc on my Amiga.
  16. >> Every time I try I get a lot of errors, and the same program I did compile
  17. >> on a Sun Workstation with gcc any I din't get any errors.
  18. >> 
  19. >> Is this because I'm not using the C++ version of gcc or what. Because when
  20. >> I try to use g++ on my Amiga I get the message 'g++ not executable'.
  21. >> 
  22. >> Could someone tell me what i'm doing wrong.
  23. >> I use the gcc port for the Amiga, version 2.2.2.
  24. >
  25. >    You need to make sure your program has a .cc extension otherwise
  26. >    gcc thinks it's a C program instead of C++.  I have gotton a C++
  27. >    program to compile using the above suggestion and the following
  28. >    command line: gcc [filename].cc -lg++ -o [filename]
  29. >
  30. >    I'm still getting an Error message:  undefined symbol
  31. >    ___new_handler referenced from text segment.
  32.  
  33. (gpp is an AREXX script, g++ is a /bin/sh script, for those that want a
  34. g++ frontend).
  35.  
  36. The __new_handler bug is a known bug of the initial distribution. It has
  37. been fixed in fix1. Please get fix1, fix2 and fix3, and save yourself a lot
  38. of problems. Note: please set your STACK high enough while applying fix1,
  39. the later fixes set the stack themselves, I didn't know about the stack
  40. hunger of ar/ranlib when releasing fix1.
  41.  
  42. -Markus
  43. -- 
  44. Markus M. Wild    -  wild@nessie.cs.id.ethz.ch  |  wild@amiga.physik.unizh.ch 
  45. Vital papers will demonstrate their vitality by spontaneously moving
  46. from where you left them to where you can't find them.
  47.