问题:usr/bin/ld: i386 architecture of input file XXX.a( xxx.o) is incompatible with i386:x86-64 output
在32位Linux 系统下编译的o文件残留,
在64位编译时候提示的编译错误。
方案1:make clean
方案2:部分情况是Makefile或者cmakelist编写错误,可以查看是否有编译平台指定错误
例如在默认64编译环境下编译32位工程,要指定编译器属性
set_target_properties(.... “-m32”);

usr/bin/ld: i386 architecture of input file XXX.a( xxx.o) is incompatible with i386:x86-64相关推荐

  1. ld: i386 architecture of input file `kernel.o‘ is incompatible with i386:x86-64 output

    学习操作系统时,链接几个用nasm汇编器生成的elf文件时,出现如题所示的错误提示. 操作如下: nasm -f elf kernel.asm -o kernel.o nasm -f elf stri ...

  2. ld: i386 architecture of input file `eatsyscall.o' is incompatible with i386:x86-64 output

    在Ubuntu下用学习汇编语言编程,在使用ld链接时有碰到标题所示的问题. 很明显,root cause 是我编译好的文件(eatsyscall.o)是遵循i386 architecture, 而我使 ...

  3. ld: i386 architecture of input file is incompatible with i386:x86-64 output

    如果报以上错误,可以使用下面的语句来解决: If want compile the file as 32 bits, you can use: ld -m elf_i386 -s -o file fi ...

  4. /usr/bin/ld: i386 architecture of input file `xx‘ is incompatible with i386:x86-64 output

    Cmake解决办法: add_compile_options(-m32) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -m32 ...

  5. Qt error: /usr/bin/ld: cannot find -lGL: No such file or directory

    QtCreator报错: clang++ -ccc-gcc-name g++ -Wl,-rpath,/home/yigo/Qt5.12.12/5.12.12/gcc_64/lib -o Test1 m ...

  6. make报错:/usr/bin/ld: cannot find -lXXX

    在编译php时报错如下: # make ... /usr/bin/ld: cannot find -lltdl collect2: ld returned 1 exit status make: ** ...

  7. /usr/bin/ld: cannot find -lfontconfig解决方法

    有时候我们编译php的时候会出现以下问题: /usr/bin/ld: cannot find -lfontconfig collect2: ld returned 1 exit status make ...

  8. /usr/bin/ld: skipping incompatible -转

    今天碰到的问题: /usr/bin/ld: skipping incompatible qt在连接a和so文件时报错 分析:编译器给出的错误信息已经很清楚了:兼容性问题 解决方法: file xxx. ...

  9. usr / bin / ld:找不到-l <nameOfTheLibrary>

    本文翻译自:usr/bin/ld: cannot find -l I'm trying to compile my program and it returns this error : 我正在尝试编 ...

最新文章

  1. 2021年广东赛区线上比赛高校组合点-五邑大学
  2. 产品经理必知必会知识-竞品分析需求实战报告
  3. 哈理工大学计算机专业宿舍,计算机学院举办“灯塔工程”之寝室文化节
  4. python小结_python简单小结
  5. C++之map的前后遍历
  6. Java命令行界面(第3部分):jbock
  7. char p[]与char *p的区别
  8. P4172 [WC2006]水管局长 LCT维护最小生成树
  9. Android Studio 完美解决 “Android SDK Manager 无法更新“、 ”connection error” 的问题...
  10. CSS3 Transform 变形
  11. 短视频标题自动生成工具,助你打造爆款标题
  12. 微信小程序 模拟支付宝账单的个人记账小程序
  13. win10 微信/QQ等能听到别人说话,别人听不到自己说话解决方案
  14. MAC 下如何更改brew源地址
  15. latex 如何输入 双斜杠 单斜杠
  16. pure-admin九州权限系统地址简单读
  17. 永洪BI SQL带参数查询
  18. 【miscellaneous】最新HEVC/H.265 4K视频,显卡解码测试
  19. 66319D安捷伦Agilent直流电源
  20. 深入浅出 Laravel 路由执行原理

热门文章

  1. 银河系中心黑洞的第一张照片,本文带你了解发现的过程
  2. 多文件断点续传,上传视频自动转MP4和截图,图片格式转换
  3. 清华计算机系校服,北大清华(清华大学各系校服)
  4. 贫民窟里的WPF系列讲座(一)
  5. 行人重识别(3)——行人重识别(基于图像)综述
  6. Linux中vi编辑器的使用
  7. 201871010104-陈园园 《面向对象程序设计 (java)》第一周学习总结
  8. 机器人的弊议论文_机器人的利与弊议论文
  9. Python学记(三)turtle库
  10. java 电子时钟_java多线程编程制作电子时钟