zen shaw
asked on
gcc-c++-4.1.2 on Centos 7
Hi, i would like gcc-c++ to work on centos 7 , i have tried to find rpm's, but can't . can you please help
You would need to compile it from source, you have a working C compiler installed on your CentOS machine, right?
Source for gcc-c++-4.1.2 is here: https://www.gnu.org/software/gcc/releases.html
Installation/building instructions here: https://gcc.gnu.org/install/
Source for gcc-c++-4.1.2 is here: https://www.gnu.org/software/gcc/releases.html
Installation/building instructions here: https://gcc.gnu.org/install/
you can use CentOS5 yum-utils
run yumdownloader --source --resolve gcc-c++
And you have source to build
or at least add --prefix=/opt/old_cruft when running ./configure
run yumdownloader --source --resolve gcc-c++
And you have source to build
or at least add --prefix=/opt/old_cruft when running ./configure
ASKER
Hi gheist, it's very kind of you for replying.
would it effect if i
compile from source and install 4.1.2 and also, i keep gcc-4.8.2 as well.
basically, my question is, can both versions be kept, yes or no?
if yes, how would they effect it ?
would it effect if i
compile from source and install 4.1.2 and also, i keep gcc-4.8.2 as well.
basically, my question is, can both versions be kept, yes or no?
if yes, how would they effect it ?
ASKER
one of developer wants to install gc4.1.2 on centos 7, so i'm not sure, if i need to remove latest version to do so.
ASKER
sorry,if i am annoying you guys, how do i check if there is working c compiler installed on centos 7 machine or not?
touch true.c
cc -o true true.c
./true
cc -o true true.c
./true
GCC 4.8 gives more sophisticated warnings about common coding mistakes.
It is very very bad idea to use old compiler to conceal them
It is very very bad idea to use old compiler to conceal them
ASKER
basically developers have requested this ,they are using centos6 at the moment and they will be switching to centos7 ,
they want gcc4.1.2 compiler installed on centos 7 distro so that they don't have to update all their code for gcc4.8.x
so that they don't have problem when they switch to centos7
what's the best way to address this issue ?
they want gcc4.1.2 compiler installed on centos 7 distro so that they don't have to update all their code for gcc4.8.x
so that they don't have problem when they switch to centos7
what's the best way to address this issue ?
ASKER
also, when i'll compile them, would i get rpm ?
or what would be the end result of compiled files
please help
or what would be the end result of compiled files
please help
CentOS 6 supplies gcc 4.4.7
They are liars.
Indeed they have to update all the code because GCC 4.8 warnings point to their mistakes, not to wrong compiler.
That should ent the epic story.
They are liars.
Indeed they have to update all the code because GCC 4.8 warnings point to their mistakes, not to wrong compiler.
That should ent the epic story.
RHEL5 source does not compile with EL7 gcc 4.8, bails out.
Either they update their code or fix gcc 4.1 to build with gcc 4.8
Either they update their code or fix gcc 4.1 to build with gcc 4.8
ASKER
what do you mean by fix gcc4.1 to build with gcc 4.8
sorry,if i am asking very basic
sorry,if i am asking very basic
ASKER
hi gheist, that sounds good idea, how can they do that ?
What we are trying to say is that your developers should adapt their code so it compiles with gcc 4.8
You want to migrate to the latest centos, but not the latest compiler. Your developers will have to adapt eventually, now seems a good time.
You could have both Centos 6 and 7 available to developers for a short period, say 3-6 months to give them some time and then quit with 6.
You want to migrate to the latest centos, but not the latest compiler. Your developers will have to adapt eventually, now seems a good time.
You could have both Centos 6 and 7 available to developers for a short period, say 3-6 months to give them some time and then quit with 6.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Resurrecting a dinosaur would be more sane idea though.
Install gcc-c++ v4.8.2 instead and fix the code warnings - that had to be done some other day anyway.