链接时跳过不兼容的错误 [英] Skipping incompatible error when linking

查看:999
本文介绍了链接时跳过不兼容的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用intel C编译器在64位架构上编译。相同的代码在不同的64位英特尔架构上构建得很好。

I am compiling on a 64 bit architecture with the intel C compiler. The same code built fine on a different 64 bit intel architecture.

现在当我尝试构建二进制文件时,我收到一条消息Skipping incompatible ../../ libtime.a或一些这样的事情,这表明我归档(从一些目标文件我编译)libtime.a不兼容。我googled,似乎这通常是32-> 64位转换或类似的结果,但intel C编译器似乎不支持一个-64或一些其他内存选项在编译时。如何解决并修复此错误?

Now when I try to build the binaries, I get a message "Skipping incompatible ../../libtime.a" or some such thing, that is indicating the libtime.a that I archived (from some object files I compiled) is not compatible. I googled and it seemed like this was usually the result of a 32->64 bit changeover or something like that, but the intel C compiler doesnt seem to support a -64 or some other memory option at compile time. How do I troubleshoot and fix this error?

推荐答案

不能混合64位和32位编译代码。 Linux的配置说明在这里

You cannot mix 64-bit and 32-bit compiled code. Config instructions for Linux are here.

这篇关于链接时跳过不兼容的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆