针对你提出的问题“i386 architecture of input file `main.o' is incompatible with i386 output”,我们可以从以下几个方面进行详细解答: 1. 解释i386与i386架构不兼容问题 i386指的是32位Intel架构,而i386(或简称x86-64)是64位Intel和AMD架构。当你尝试将32位的目标文件(如main.o)链接到一个64位的可执行文件...
is incompatible with i386:x86-64 output报错 在[一个操作系统的实现]书中,第五章,开始编译elf文件格式的操作系统内核。 将hello.asm编译为hello.o,再编译为可执行文件 编译hello.o时,nasm报错is incompatible with i386:x86-64 output。 原因是原实验是在32位操作系统下做的,使用的库也是32位的,而现在使用...
/usr/bin/ld: i386:x86-64 architecture of input file `command.o' is incompatible with i386 output 出现这种警告的时候的时候,运行程序老是段错误,要加-m32,就好了。 gcc -m32 -o usehello_static usehello.c libhello.a 原因引用的库是 32位的,我是用的64位的系统 参考:https://github.com/Liutos/...
bin/ld: i386:x86-64 architecture of input file `sysinfo.o' is incompatible with i386 output [ALL ] /usr/bin/ld: i386:x86-64 architecture of input file `syslex_wrap.o' is incompatible with i386 output [ALL ] /usr/bin/ld: sysinfo.o: file class ELFCLASS64 incompatible with ELFCLASS...
2 - The one that was in the title of this issue, about incompatible main.o file output, I put -m32 in the linker command line and the problem was solved. itodireladdedquestioninvestigatinglabelsNov 27, 2018 itodirelclosed this ascompletedApr 3, 2020 ...
You must provide credentials with root privileges to reconfigure these items. Click the Log tab to show the output of each configuration step performed by MySQL Installer. On completion, MySQL Installer stops the server, applies the configuration changes, and restarts the server for you. For a ...
Running lspci -v | grep 3D gives no output, but I don’t think that is a problem with my graphic card because I do not have any other GPU, nor integrated and my monitor is connected to my GPU and still displays my deskto...
Otherwise you can end up with two instances of the runtime active in your process, and, without specific care, those instances can conflict at runtime over resources (memory, input/output aspects, exception handlers, thread control) that are inherently shared between them. Recent compiler ...
is incompatible with i386:x86-64 output报错 2017-11-09 16:28 −... zx1116 0 6409 Moving x86 assembly to 64-bit (x86-64) 2019-12-21 20:06 −While 64-bit x86 processors have now been on the market for more than 5 years, software support is only slowly catching on. 64-bit x86...
因为从上面可以看书,elf默认是32为,而elf_i386也为32位,其中elf_x86_64才是64位。所以,应该兼容才对。 也许上面说法也是不专业,或者这样说:nasm编译出来是32位的,而链接程序ld将32位的应用程序链接到了64位上做为可执行文件,这样做是不对的,应该将32位应用程序链接到32位上做为可执行文件。