硬汉嵌入式论坛

 找回密码
 立即注册
查看: 760|回复: 4
收起左侧

[开发工具] 关于.a文件编译报错问题

[复制链接]

5

主题

11

回帖

26

积分

新手上路

积分
26
发表于 2024-12-17 16:20:02 | 显示全部楼层 |阅读模式
最近在工程中添加了一个.a文件,其文件属性已经更改


但是编译还是报错,请问大佬这是为啥

回复

使用道具 举报

692

主题

3576

回帖

5677

积分

论坛元老

积分
5677
发表于 2024-12-17 17:28:01 | 显示全部楼层
不应该呀, 你修改的属性发出来看看
回复

使用道具 举报

5

主题

11

回帖

26

积分

新手上路

积分
26
 楼主| 发表于 2024-12-17 19:43:59 | 显示全部楼层
hpdell 发表于 2024-12-17 17:28
不应该呀, 你修改的属性发出来看看

文件修改成了library file属性
报错为
.\Objects\GD32F350K8.axf: Warning: L6170W: Mapping symbol #41 '$t' in .bss(ms1002.o:9) identifies code, but is in a section not marked as executable.
.\Objects\GD32F350K8.axf: Warning: L6170W: Mapping symbol #42 '$t' in .bss(ms1002.o:10) identifies code, but is in a section not marked as executable.
.\Objects\GD32F350K8.axf: Warning: L6170W: Mapping symbol #43 '$t' in .bss(ms1002.o:11) identifies code, but is in a section not marked as executable.
.\Objects\GD32F350K8.axf: Error: L6405E: No .ANY selector matches ms1002.o(.bss).
.\Objects\GD32F350K8.axf: Error: L6405E: No .ANY selector matches ms1002.o(.bss).
.\Objects\GD32F350K8.axf: Error: L6405E: No .ANY selector matches ms1002.o(.bss).
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
回复

使用道具 举报

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
117546
QQ
发表于 2024-12-18 08:38:17 | 显示全部楼层
软汉 发表于 2024-12-17 19:43
文件修改成了library file属性
报错为
.\Objects\GD32F350K8.axf: Warning: L6170W: Mapping symbol #4 ...

支持MDK AC6不,支持的话,可以试试这个

1234.png



回复

使用道具 举报

5

主题

11

回帖

26

积分

新手上路

积分
26
 楼主| 发表于 2024-12-18 18:20:05 | 显示全部楼层
eric2013 发表于 2024-12-18 08:38
支持MDK AC6不,支持的话,可以试试这个

用AC6改成您这种设置后还是之前的报错
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2025-8-14 05:25 , Processed in 0.075467 second(s), 28 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表