CSSBDSNBVSIBP 2022-10-01 01:05
浏览 37
已结题

Ubuntu上 Makefile编译应用时出错:relocations in generic ELF (EM: 40)

Ubuntu上 Makefile编译应用时出错:relocations in generic ELF (EM: 40)

在Ubuntu上. /opt/fsl-imx-x11/4.1.15-2.0.0/environment-setup-cortexa7hf-之后,
用makefile去编译一个应用代码

报错:

/usr/bin/ld: Release/link/f.o: in function Beep(int)': f.cpp:(.text+0x0): multiple definition of Beep(int)'; Release/link/beep.o:beep.cpp:(.text+0x0): first defined here

/usr/bin/ld: api/libgsserial.a(libserial.o): relocations in generic ELF (EM: 40)
/usr/bin/ld: api/libgsserial.a: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
make: *** [Makefile:77:CSReader] 错误 1

网上搜过后,说是make clean 再次编译就行,可我再次编译还是同样报错
麻烦老大哥帮忙解决下编译问题>.<
  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 10月9日
    • 创建了问题 10月1日

    悬赏问题

    • ¥15 逻辑谓词和消解原理的运用
    • ¥15 请求分析基于spring boot+vue的前后端分离的项目
    • ¥15 三菱伺服电机按启动按钮有使能但不动作
    • ¥15 js,页面2返回页面1时定位进入的设备
    • ¥200 关于#c++#的问题,请各位专家解答!网站的邀请码
    • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
    • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
    • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
    • ¥20 腾讯企业邮箱邮件可以恢复么
    • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?