home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / g / help / 1693 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  2.8 KB

  1. Path: sparky!uunet!gossip.pyramid.com!pyramid!infmx!jacob
  2. From: jacob@informix.com (Jacob Salomon)
  3. Newsgroups: gnu.g++.help
  4. Subject: Repost with correction (Was: Re: So close and yet, so far...)
  5. Keywords: collect link
  6. Message-ID: <1993Jan22.145714.2386@informix.com>
  7. Date: 22 Jan 93 14:57:14 GMT
  8. Sender: news@informix.com (Usenet News)
  9. Organization: Informix Software, Inc.
  10. Lines: 55
  11. Originator: jacob@cheetah
  12.  
  13. Apologies on the muysterious problem - I had omitted a vital "not"
  14. from the  description of my situation, resulting in nonsense. Here is
  15. the correction; note the *not* in the paragraph beginning with the
  16. word "Unfortunately":
  17.  
  18. In article <1993Jan21.004406.6508@informix.com>  I asked for help
  19. regarding why, after finally getting a clean compile of gcc-2.3.3 the
  20. compiler was unable to automatically find <iostream.h>; I was forced
  21. to supply the directory in the -I option to g++.  When I did this the
  22. compile completed the linker (or more accurately, collect) complained 
  23. it was unable to find libg++.a (library for -lg++).  I got back some
  24. important answers:
  25.  
  26. Mr. DM and AG (names witheld to protect their mailboxes ;) both replied
  27. that I had needed to supply a --prefix parameter to the configure
  28. command for both gcc and libg++.  Furthermore, the target directory
  29. must be the same for both configure commands.
  30.  
  31. Unfortunately, this is documented only in the libg++ README, not in
  32. the gcc readme (I just ran a grep on it; it isn't there!) and I really
  33. had *not* used the --prefix in the configure on gcc.  Short of going
  34. through all that building again (remembering to drop the -g from all
  35. Makefiles and uncommenting/commenting for various models! UGH!) what
  36. can I do to make use of everything where it is?
  37.  
  38. Mr. JO to the partial rescue:  Here is his reply:
  39.  
  40. >I set up libg++ on decstation 5000/240 running Ultrix 4.?
  41. >To search the various files the following env var are needed (for me)
  42. >COMPILER_PATH (sound ok for you)
  43. >LIBRARY_PATH  ( I think you need this )
  44. >CPLUS_INCLUDE_PATH ( for includes )
  45.  
  46. Well, I set up the CPLUS_INCLUDE_PATH to reference where I had put
  47. the include directory: /usr/gnu/lib/g++-include .. This helped it find
  48. the <iostream.h> without my supplying the -I switch to g++.  However
  49. the LIBRARY_PATH did not help the linker (or collect) find libg++.a,
  50. no matter where I aimed it.  BTW, the directory gcc-lib is under
  51. /usr/local/lib.
  52.  
  53. Thanks to all who sent me the help so far.  I'm almost there with only
  54. one screw-up along the way.
  55.  
  56. C'mon Netters, please help hack my way around that screw-up!  As
  57. before, please reply be e-mail.
  58.  
  59. Thanks again.
  60.  
  61.         -- Jake Salomon
  62.         jacob@informix.com
  63. -- 
  64. ----------------Obligatory smart-$$$ remark:---------------------
  65. | There's two kinds of people: Those who categorize people into |
  66. | two groups and those who don't.   (Barth's Aging proverb.)    |
  67. -----------------------------------------------jacob@informix.com
  68.