0

我正在尝试在 Ubuntu 12.0.4 上安装 GCC 2.95。这是错误

decl.c : in function 'start_struct': 4449:27; argument 'code' doesn't match prototype

ch-tree.h: 736:13: error: prototype declaration

我试过了:

./configure
make(失败的)

如何解决这些错误并在 Ubuntu 12.0.4 上安装 GCC 2.95?

4

1 回答 1

2

My theory is that you are building it wrong. Did you read the directions?

I think you need to run ./configure, then run make bootstrap. It has been a while (12 years at least!) but I think that will work.

The difference is that bootstrap will build a tiny version of GCC then build GCC then build GCC again. Of course this is slower than just make, but it should be able to build GCC starting with any K&R C compiler.

于 2012-12-21T03:05:52.527 回答