问题描述
我试图建立的OSKit源$ C $ C。据orginally写对海湾合作委员会2.95.2,但在我的盒子我的gcc 4.3.2。 4.3.2和不允许的语法如下:
I am trying to build the OSKit source code. It is orginally written against gcc 2.95.2, but on my box I got gcc 4.3.2. And 4.3.2 doesn't allow the following syntax:
asm volatile("
pushfl
popl %0" : "=r" (eflags));
return eflags;
4.3.2总是抱怨说:
4.3.2 always complains that:
error: missing terminating " character
有这么多的语法就是这样,有没有办法让4.3.2接受吗?还是有让4.3.2表现得像一个2.95.2更普遍的方式是什么?或者我在哪里可以下载2.95.2版本的GCC的?
There're so many syntax like this, is there a way to let the 4.3.2 accept this? Or is there a more general way to let the 4.3.2 behave like 2.95.2? Or where could I download the 2.95.2 version of gcc?
谢谢!
我的真正目的是要建立。的OSKit宣称与GCC 2.7.x或2.95.2进行compilabe。我的Ubuntu 8.10安装使用GCC 4.3.2。
My real aim is to build the OSKit. OSKit claims to be compilabe with GCC 2.7.x or 2.95.2. My Ubuntu 8.10 is installed with GCC 4.3.2.
我尝试以下编译序列:
4.3.2版本2.95.2 ---失败。
4.3.2 build 2.95.2 --- failed
4.3.2-> - > 2.7.2.3 ---成功。
4.3.2->3.3.6->2.7.2.3 --- success.
4.3.2 - > 2.7.2.3 ---成功
4.3.2 -> 2.7.2.3 --- success
3.3.6 - > 2.95.2 ---失败。
3.3.6 -> 2.95.2 --- failed
虽然我还没有2.95.2,我2.7.2.3最少。
Though I still don't have 2.95.2, I got 2.7.2.3 at least.
但OSKit的还是打破了2.7.2.3 ...
But the OSKit is still broken with 2.7.2.3...
目前,我不知道该怎么办... :(
Currently I don't know what to do... :(
任何人都可以给我一些建议吗? @ _ @
Could anyone give me some advice? @_@
推荐答案
您可以在这里下载:
最正确的方法是下载旧版本,并安装在一个目录路径之外。
The most correct way is to download the old version and install in a directory outside of your PATH.
海湾合作委员会已经改变,从2版本太多4 ...
The GCC has changed much from version 2 to 4 ...
这篇关于如何打造旧的源$ C $ c。与最新的GCC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!