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

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