gpt4 book ai didi

linux - "ccmath"库可以在 x86-64 linux 上编译吗?

转载 作者:太空宇宙 更新时间:2023-11-04 04:22:53 29 4
gpt4 key购买 nike

Ccmath 库: http://freecode.com/projects/ccmath

它在描述中没有指定32/64位,但是当我在Ubuntu 10.10 64位上编译时,它在asm文件编译时抛出错误:

solv.s:13: Error: invalid instruction suffix for `push'

代码行:pushl %ebp

但是如果我将 cc shell 指令替换为 gcc -m32 就一切OK了!但是,我可以在 x86-64 上编译它吗?我必须将其链接到 64 位项目。

最佳答案

该 ccmath 软件包看起来自 2001 年以来就没有更新过。它的汇编例程不支持 64 位。您应该按照安装文件中的说明运行包含的 non_intel.sh 脚本。 (就这个软件包而言,x86-64 不是 intel,因为“intel”意味着“x86-32”。)

关于linux - "ccmath"库可以在 x86-64 linux 上编译吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11679174/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com