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

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

问题描述

我编译在64位架构与英特尔C编译器。同样的code建立了良好的在不同的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.

现在,当我尝试生成的二进制文件,我得到一个消息跳过不兼容../../libtime.a或一些这样的事情,那就是表明我归档的libtime.a(某些目标文件我编译)是不兼容的。我一派,这似乎是这通常是一个32-> 64位转换或类似的东西的结果,但英特尔的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位编译code。为Linux <一个配置的说明href=\"http://software.intel.com/en-us/articles/intel-c-compiler-for-linux-building-32-bit-and-64-bit-applications-on-a-64-bit-linux-development-system/\"相对=nofollow>在这里。

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

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

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