Re: Several GCC Versions

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

 



Johan Santos writes:

 > I have instaled GCC 4.1 and the suse 10.1 in my amd 64. Now i need
 > to intall de gcc 2.95 for using the tool c++ code testing
 > (c++test).  In another pc i have intaled the gentoo distribution
 > and there is possibel have severeal versions of gcc in the same pc,
 > i supose that in suse this is possibel also. I need to know the
 > form to do that.

gcc 2.95 is too old for AMD 64.  Getting it to run on the 32-bit
subsystem is possible, but will be tricky.  If you have no experience in
this area, you my be better hiring an expert.

Build and install the compiler, as per the instructions at
http://gcc.gnu.org/install/configure.html.  Set the --prefix option to
wherever you want gcc installed.

Something like this may work:

~/gcc/gcc-2.95.3/configure --prefix=/tmp/gcc-2.95.3 --target=i386-linux-gnu --host=i386-linux-gnu --enable-languages=c,c++ --with-as=$HOME/bin/as

You'll need a 32-bit assembler installed somewhere; here I put it in $HOME/bin/as.

Andrew.

[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