Article View: gnu.g++.help
Article #688Re: So close and yet, so far...
From: Jacob Salomon
Date: Thu, 21 Jan 1993 23:02
Date: Thu, 21 Jan 1993 23:02
50 lines
2731 bytes
2731 bytes
In article <1993Jan21.004406.6508@informix.com> I asked for help regarding why, after finally getting a clean compile of gcc-2.3.3 the compiler was unable to automatically find <iostream.h>; I was forced to supply the directory in the -I option to g++. When I did this the compile completed the linker (or more accurately, collect) complained it was unable to find libg++.a (library for -lg++). I got back some important answers: Mr. DM and AG (names witheld to protect their mailboxes ;) both replied that I had needed to supply a --prefix parameter to the configure command for both gcc and libg++. Furthermore, the target directory must be the same for both configure commands. Unfortunately, this is documented only in the libg++ README, not in the gcc readme (I just ran a grep on it; it isn't there!) and I really had used the --prefix in the configure on gcc. SHort of going through all that building again (remembering to drop the -g from all Makefiles and uncommenting/commenting for various models! UGH!) what can I do to make use of everything where it is? Mr. JO to the partial rescue: Here is his reply: >I set up libg++ on decstation 5000/240 running Ultrix 4.? >To search the various files the following env var are needed (for me) >COMPILER_PATH (sound ok for you) >LIBRARY_PATH ( I think you need this ) >CPLUS_INCLUDE_PATH ( for includes ) Well, I set up the CPLUS_INCLUDE_PATH to reference where I had put the include directory: /usr/gnu/lib/g++-include .. This helped it find the <iostream.h> without my supplying the -I switch to g++. However the LIBRARY_PATH did not help the linker (or collect) find libg++.a, no matter where I aimed it. BTW, the directory gcc-lib is under /usr/local/lib. Thanks to all who sent me the help so far. I'm almost there with only one screw-up along the way. C'mon Netters, please help hack my way around that screw-up! As before, please reply be e-mail. Thanks again. -- Jake Salomon jacob@informix.com -- ----------------Obligatory smart-$$$ remark:--------------------- | There's two kinds of people: Those who categorize people into | | two groups and those who don't. (Barth's Aging proverb.) | -----------------------------------------------jacob@informix.com
Technical Details
Message-ID:
<1993Jan21.230209.19341@informix.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!olivea!gossip.pyramid.com!pyramid!infmx!jacobReferences:
<1993Jan21.004406.6508@informix.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!gossip.pyramid.com!pyramid!infmx!jacob From: jacob@informix.com (Jacob Salomon) Newsgroups: gnu.g++.help Subject: Re: So close and yet, so far... Keywords: Linker, ld, collect Message-ID: <1993Jan21.230209.19341@informix.com> Date: 21 Jan 93 23:02:09 GMT References: <1993Jan21.004406.6508@informix.com> Sender: news@informix.com (Usenet News) Organization: Informix Software, Inc. Lines: 50