home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 15884 < prev    next >
Encoding:
Text File  |  1992-11-15  |  1.7 KB  |  44 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!mcsun!sunic!ericom!eua.ericsson.se!euas29c16!etxpihl
  3. From: etxpihl@eua.ericsson.se (Tomas Pihl)
  4. Subject: Re: found g++ in gcc, but can`t seem to co
  5. Message-ID: <1992Nov16.070023.20559@eua.ericsson.se>
  6. Sender: news@eua.ericsson.se
  7. Nntp-Posting-Host: euas29c16.eua.ericsson.se
  8. Reply-To: etxpihl@eua.ericsson.se
  9. Organization: Ellemtel Telecom Systems Labs, Stockholm, Sweden
  10. References: <1992Nov14.082116.254@bernina.ethz.ch>
  11. Date: Mon, 16 Nov 1992 07:00:23 GMT
  12. Lines: 30
  13.  
  14. In article 254@bernina.ethz.ch, wild@nessie.cs.id.ethz.ch (Markus Wild) writes:
  15. > In article <1992Nov13.235545.9456@news.cs.indiana.edu> "Stefan Berg" <sgberg@peach.ucs.indiana.edu> writes:
  16. > >The program I tried to compile just compiled fine on a Sun using g++.
  17. > >It is a fairly simple program. I`m running gcc2.2.2 (fix1-fix3) on my
  18. > >Amiga.
  19. > >
  20. > >The error messages I get are all of the form:
  21. > >
  22. > >"test.o: Undefined symbol XXX referenced from test segment"
  23. > >
  24. > >Where XXX is _cerr, ___ls__FR7ostreamPCc, and many others.
  25. > If using gcc, you have to explicitly specify to link with -lg++. When using
  26. > g++, the driver takes care of specifying -lg++, so you don't have to specify
  27. > it explicitly.
  28.  
  29. I had the same problem. I've tried to specify -lg++, but it didn't work. I turned
  30. on verbose mode (-v) and saw that -lg++ now suddenly was -lg ?!. So, I renamed
  31. libg++.a to libg.a and everything work just fine.  Don't ask me how g++ could end
  32. up as just g...
  33.  
  34. One more question when I'm on the air:
  35.  
  36.  How can a simple C++-program that just do a cout << "Hellp world" end up as a 
  37. 54kb binary file?
  38.  
  39. ________________________________________
  40. / Tomas Pihl
  41. / ELLEMTEL Telecom Systems Lab, Sweden
  42. / email:   etxpihl@eua.ericsson.se
  43.