Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keil 中使用 AC6 在链接时报错 #57

Open
bsbandwl opened this issue Mar 30, 2022 · 3 comments
Open

Keil 中使用 AC6 在链接时报错 #57

bsbandwl opened this issue Mar 30, 2022 · 3 comments

Comments

@bsbandwl
Copy link

STM32F765,使用 Keil AC6,编译没问题,链接时找不到 下图
图片

如果强行定义:
#define __CLANG_ARM

可以链接成功,但是会提示下图
图片

希望得到帮助

@bsbandwl
Copy link
Author

bsbandwl commented Apr 1, 2022

问题解决了 @armink
我把所有的 __CLANG_ARM 替换成 (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6120001)) 就好了
我查了一下,可能是我MDK版本问题,我是 5.35, AC6是 6.16, 手册写了,没有定义 __CLANG_ARM ,所以用不起来,我建议保险起见,不要使用 __CLANG_ARM

@armink
Copy link
Owner

armink commented Apr 1, 2022

这么坑呀

@MS10755
Copy link

MS10755 commented May 30, 2022

确实是这个问题,我的是5.28也是没有 __CLANG_ARM 这个宏
修改在cmb_cfg.h文件里增加个宏 可以解决,不用替换
/* language of print information */
#define CMB_PRINT_LANGUAGE CMB_PRINT_LANGUAGE_ENGLISH

#ifndef __CLANG_ARM
#define __CLANG_ARM (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6120001))
#endif

#endif /* CMB_CFG_H */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants