问题描述
对于以下 C 代码:
file.h
// declaration of extern function
extern void extFunc();
file.c
#include "file.h"
// declaration of static function
static void localFunc(uint32_t const input);
// definition of static function
void localFunc(uint32_t const input)
{
// do something
}
// definition of extern function
void extFunc()
{
// do something
}
当我为 ARM ISA 目标编译上述代码时,我收到编译器错误说
错误[Pe177]:函数“localFunc”已声明但从未在 C:\Users\admin\git\file.c 中引用
如何摆脱它?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)