Results 1 to 2 of 2
hello.
On my suse 10.2 I have g++ 4.1.2 installed, but also needed g++ 2.95.
I installed gcc 2.95 by compiling the sources, it all looks ok... but when I ...
- 07-17-2009 #1Just Joined!
- Join Date
- Oct 2008
- Posts
- 7
how do you tell gcc where to search for standard headers and libc ??
hello.
On my suse 10.2 I have g++ 4.1.2 installed, but also needed g++ 2.95.
I installed gcc 2.95 by compiling the sources, it all looks ok... but when I try to build any simple application the compiler doesn't know where to look for C++ headers, and if I use only C headers, it doesn't find libstdc++.
thx
- 07-17-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
If you have gcc/g++ 2.95 installed, you should still start your compile with the standard gcc/g++ but give it the -V 295 argument. It should know where to find the appropriate headers, assuming they got installed with 2.95. If not, you will need to apply the appropriate -I <headerdir> arguments in your Makefile CFLAGS and CPPFLAGS variables.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote