ceedling—>BUG记录 undefined reference to `__LDREXW‘

现象
测试文件A.c中内容,依赖于B.c,这里mock了B.h
#include "unity.h"
//#include "support_A.h"
#include "mock_B.h"
#include "A.h"

如上代码段,support_A.h是存在于support文件夹中新建的支持文件,其中没有任何内容,当不加入support_A.h报错
Linking test_A.out...
B.h:3683:undefined reference to `__LDREXW'
B.h:3683:undefined reference to `__STREXW'

所指向的内容是B.c文件中的静态内联函数,其中__LDREXW和__STREXW是根据不同编译器来进行定义的; 当我加入这个空的头文件后
#include "unity.h"
#include "support_A.h"
#includ

ceedling—>BUG记录 undefined reference to `__LDREXW‘最先出现在Python成神之路

版权声明:
作者:玉兰
链接:https://www.techfm.club/p/27191.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>