Re: compile gcc and library

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 24, 2012 at 1:58 PM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote:
> 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.
>

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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux