home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 25300 < prev    next >
Encoding:
Text File  |  1993-01-24  |  2.1 KB  |  60 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!usc!howland.reston.ans.net!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!csus.edu!netcom.com!aclark
  3. From: aclark@netcom.com (Al Clark)
  4. Subject: Re: Pt 1/2: linux 0.98 c++ st
  5. Message-ID: <1993Jan24.144842.14559@netcom.com>
  6. Keywords: g++, cout
  7. Organization: Self
  8. References: <727676295.AA34613@remote.halcyon.com> <1jtsv0INNfvo@escargot.xx.rmit.OZ.AU>
  9. Date: Sun, 24 Jan 1993 14:48:42 GMT
  10. Lines: 48
  11.  
  12. In article <1jtsv0INNfvo@escargot.xx.rmit.OZ.AU> rcopg@minyos.xx.rmit.OZ.AU (Paul Gortmaker) writes:
  13. >Paul.Caffrey@f15.n229.z1.fidonet.org (Paul Caffrey) writes:
  14. >
  15.    [ stuff deleted ]
  16. >
  17. >>I can't get the c++ stream io implementation of the 0.98 linux SLS
  18. >>distribution
  19. >>working.
  20. >
  21.   [ program deleted ]
  22. >>fails to compile (g++ cout.c) with the following message:
  23. >
  24. >>cout.o: Undefined symbol _cout referenced from text segment
  25.   [ stuff deleted ]
  26. >>Can anyone explain why this happens? All other c++ appear to be
  27. >>working.
  28. >>ps while I'm on is there a "dissambler" program for linux?
  29. >>Paul
  30. >>email pac30@amail.amdahl.com
  31.   [ stuff deleted ]
  32. >
  33. >    This is not really a question for the Linux newsgroup, but rather for 
  34. >the GCC newsgroup. 
  35.     It bugs ME when people make blithe assumptions like this.  It IS a
  36.     problem unique to Linux, specifically to gcc2.3.3 version of g++
  37.     under linux.  I had been using g++ successfully under gcc2.2.2d,
  38.     and found this problem when I upgraded to 2.3.3.  You give the
  39.     solution below (use -static or -nojump flags).  I was looking
  40.     through the documentation, assuming I'd overlooked something, but
  41.     this posting saved me a whole bunch of time.
  42.  
  43.    [other stuff deleted ]
  44. >
  45. >    I assume you are still using GCC v2.2.2d (type gcc -v) if you are 
  46. >running 0.98 (p6 ???). This is a note from H.J. with the release of the
  47. >new libraries (for 2.3.3) which may also be pertinent.
  48. >
  49. >    "Iostream is in libc.a To use it, you have to use -nojump or
  50. >    -static in your LDFLAGS"
  51. >
  52. >(Upshot of this is to use "-lc" --- other options only pertinent to 2.3.3, I
  53. >think !!!)
  54. >
  55. >                                Paul.
  56.  
  57.     Really appreciate the information.
  58. -- 
  59. Al - aclark@netcom.com - My opinions are my own.
  60.