home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / gnu / gcc / help / 2464 < prev    next >
Encoding:
Text File  |  1992-11-06  |  1.8 KB  |  58 lines

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!stanford.edu!ames!elroy.jpl.nasa.gov!usc!sol.ctr.columbia.edu!eff!iWarp.intel.com|ichips!tmcconne
  3. From: tmcconne@sedona.intel.com (Tom McConnell~)
  4. Subject: Re: Gcc 2.3.1 and collect2 library paths
  5. Message-ID: <1992Nov5.195617.1184@ichips.intel.com>
  6. Originator: tmcconne@sedona
  7. Sender: tmcconne@sedona (Tom McConnell~)
  8. Organization: Intel Corporation
  9. References:  <1d702iINNcg4@darkstar.UCSC.EDU>
  10. Date: Thu, 5 Nov 1992 19:56:17 GMT
  11. Lines: 45
  12.  
  13.  
  14. In article <1d702iINNcg4@darkstar.UCSC.EDU>, paul@aztec.ucsc.edu (Paul Tatarsky) writes:
  15. > With gcc2.2.2 using g++ one did not have to tell g++
  16. > where libg++ was. Under gcc2.3.1 which I just installed
  17. > it appears that g++ wants you to tell it where libg++ is
  18. > with a -L. Is this true or did I screw up the install.
  19.   <stuff deleted>
  20. >  Paul Tatarsky         email: paul@cse.ucsc.edu
  21. >  UC Santa Cruz
  22. >  CIS/CE Board          
  23. >  Technical Staff
  24.  
  25.   I have found the same problem for an RS/6000, AIX-3.1.6. I patched g++ and c++
  26. as a work around, but from glancing at gcc.c, it looks like something is broken
  27. in the add_prefix() function, used at line 3296.
  28.  
  29.   The simple (yet brain dead :) fix is to hard code the library in g++ and c++,
  30. like this:
  31.  
  32. *** ./c++_orig    Thu Nov  5 07:02:18 1992
  33. --- ./c++    Thu Nov  5 07:02:45 1992
  34. ***************
  35. *** 25,29 ****
  36.   quote=
  37.   # $library is made empty to disable use of libg++.
  38. ! library=-lg++
  39.   numargs=$#
  40.   
  41. --- 25,29 ----
  42.   quote=
  43.   # $library is made empty to disable use of libg++.
  44. ! library="-L/stor/gnu/aix/lib -lg++"
  45.   numargs=$#
  46.   
  47.  
  48.     Cheers,
  49.  
  50.     Tom McConnell
  51. -- 
  52.  Tom McConnell          |     Internet: tmcconne@sedona.intel.com
  53.  Intel, Corp. C3-91     |     Phone: (602)-554-8229
  54.  5000 W. Chandler Blvd. | The opinions expressed are my own. No one in 
  55.  Chandler, AZ  85226    | their right mind would claim them.
  56.