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

  1. Path: sparky!uunet!usc!sdd.hp.com!saimiri.primate.wisc.edu!ames!agate!usenet.ins.cwru.edu!news.ysu.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: <1992Dec19.152246.6286@desire.wright.edu>
  6. Date: 19 Dec 92 15:22:46 EST
  7. References: <1992Dec18.131626.834@fwi.uva.nl>
  8. Organization:  Wright State University 
  9. Lines: 31
  10.  
  11. In article <1992Dec18.131626.834@fwi.uva.nl>, solorzan@fwi.uva.nl (Valik Solorzano (I88)) writes:
  12. > Hai everyone,
  13. > I'm having problems trying to compile a C++ program with gcc on my Amiga.
  14. > Every time I try I get a lot of errors, and the same program I did compile
  15. > on a Sun Workstation with gcc any I din't get any errors.
  16. > Is this because I'm not using the C++ version of gcc or what. Because when
  17. > I try to use g++ on my Amiga I get the message 'g++ not executable'.
  18. > Could someone tell me what i'm doing wrong.
  19. > I use the gcc port for the Amiga, version 2.2.2.
  20.  
  21.     You need to make sure your program has a .cc extension otherwise
  22.     gcc thinks it's a C program instead of C++.  I have gotton a C++
  23.     program to compile using the above suggestion and the following
  24.     command line: gcc [filename].cc -lg++ -o [filename]
  25.  
  26.     I'm still getting an Error message:  undefined symbol
  27.     ___new_handler referenced from text segment.
  28.  
  29.     Does anyone know this one?
  30.  
  31. > Thanks to all
  32. > You can contact me at:
  33. > solorzan@carol.fwi.uva.nl
  34. > ------Valik----
  35. Fred Heitkamp ** Not an organization **
  36.