This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: compile gcc and library


On Thu, May 24, 2012 at 1:58 PM, Ian Lance Taylor <iant@google.com> wrote:
> Xin Tong <xerox.time.tech@gmail.com> 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.
>

This is the reason why gcc contains a c++ library, but no need for C
library ? what kind of caveats , like different mangling styles ?

> Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]