How to compile an old version of gcc, say 2.95.2?
My ubuntu installed with gcc 4.3.2. But I need gcc 2.95.2 to compile some of my code. I have downloaded the source of 2.95.2. But when I tried to compile it with 4.3.2, i failed. How could I get the 2.95.2 compiled?
Many开发者_C百科 thanks...
Update
Please take a look at this thread: How to build old source code with latest GCC?
Personally, I'd try and install the following packages:
- http://packages.ubuntu.com/dapper/i386/cpp-2.95/download
- http://packages.ubuntu.com/dapper/i386/gcc-2.95/download
- http://packages.ubuntu.com/dapper/i386/g++-2.95/download
I'm not sure if they would work or not, but I suspect that they will.
精彩评论