Thread View: gnu.g++.help
1 messages
1 total messages
Started by Jacob Salomon
Fri, 22 Jan 1993 14:57
Repost with correction (Was: Re: So close and yet, so far...)
Author: Jacob Salomon
Date: Fri, 22 Jan 1993 14:57
Date: Fri, 22 Jan 1993 14:57
55 lines
2960 bytes
2960 bytes
Apologies on the muysterious problem - I had omitted a vital "not" from the description of my situation, resulting in nonsense. Here is the correction; note the *not* in the paragraph beginning with the word "Unfortunately": 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 *not* 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads