Xin Tong <xerox.time.tech@xxxxxxxxx> writes: > I am looking for an older version of gcc ( gcc version 3.4.X). I can > not find it in my os software repository. therefore i decide to > download the source and compile it myself. I am looking at this > download link and have a few questions. > > 1. does gcc-3.4.2.tar.bz2 include all the other tars (i.e. > gcc-g++-3.4.2.tar.bz2 ). Yes. > 2. if i compile the gcc in gcc-3.4.2.tar.bz2, is libc going to be > compiled as well ? there are also other libraries such as libstdc++, > is it going to be compiled. GCC includes the C++ library, libstdc++, but it does not include a C library. > 3. is it possible to link again a library compiled by other versions > of gcc (i.e. a program compiled with gcc 3.4.4 and links it with > library that comes with gcc-4.4.6 ) ? > > http://gcc.skazkaforyou.com/releases/gcc-3.4.2/ In general, yes. For pure C code, yes. For C++ code, some caveats may apply. Ian