usr/bin/ld: i386 architecture of input file XXX.a( xxx.o) is incompatible with i386:x86-64
问题: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相关推荐
- 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 ...
- ld: i386 architecture of input file `eatsyscall.o' is incompatible with i386:x86-64 output
在Ubuntu下用学习汇编语言编程,在使用ld链接时有碰到标题所示的问题. 很明显,root cause 是我编译好的文件(eatsyscall.o)是遵循i386 architecture, 而我使 ...
- 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 ...
- /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 ...
- 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 ...
- make报错:/usr/bin/ld: cannot find -lXXX
在编译php时报错如下: # make ... /usr/bin/ld: cannot find -lltdl collect2: ld returned 1 exit status make: ** ...
- /usr/bin/ld: cannot find -lfontconfig解决方法
有时候我们编译php的时候会出现以下问题: /usr/bin/ld: cannot find -lfontconfig collect2: ld returned 1 exit status make ...
- /usr/bin/ld: skipping incompatible -转
今天碰到的问题: /usr/bin/ld: skipping incompatible qt在连接a和so文件时报错 分析:编译器给出的错误信息已经很清楚了:兼容性问题 解决方法: file xxx. ...
- usr / bin / ld:找不到-l <nameOfTheLibrary>
本文翻译自:usr/bin/ld: cannot find -l I'm trying to compile my program and it returns this error : 我正在尝试编 ...
最新文章
- 2021年广东赛区线上比赛高校组合点-五邑大学
- 产品经理必知必会知识-竞品分析需求实战报告
- 哈理工大学计算机专业宿舍,计算机学院举办“灯塔工程”之寝室文化节
- python小结_python简单小结
- C++之map的前后遍历
- Java命令行界面(第3部分):jbock
- char p[]与char *p的区别
- P4172 [WC2006]水管局长 LCT维护最小生成树
- Android Studio 完美解决 “Android SDK Manager 无法更新“、 ”connection error” 的问题...
- CSS3 Transform 变形
- 短视频标题自动生成工具,助你打造爆款标题
- 微信小程序 模拟支付宝账单的个人记账小程序
- win10 微信/QQ等能听到别人说话,别人听不到自己说话解决方案
- MAC 下如何更改brew源地址
- latex 如何输入 双斜杠 单斜杠
- pure-admin九州权限系统地址简单读
- 永洪BI SQL带参数查询
- 【miscellaneous】最新HEVC/H.265 4K视频,显卡解码测试
- 66319D安捷伦Agilent直流电源
- 深入浅出 Laravel 路由执行原理