开发者

How to compile an old version of gcc, say 2.95.2?

开发者 https://www.devze.com 2023-01-16 07:19 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消