网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

NiosII中的undefined reference to “xxx”问题

时间:2024-10-29 15:31:02

1、笔者在工程中添加了两文件一个为watchdog.c,另一个就是对应的watchdog.h。然后在main.c文件中添加了头文件语句:#include "watchdog/watchdog.h"

NiosII中的undefined reference to “xxx”问题

2、经过编译始终报错。undefined reference to `WatchDog_Feed()'u荏鱿胫协ndefined reference to `WatchDog_Init(void*)'反复查找觉得都没有问题。

NiosII中的undefined reference to “xxx”问题NiosII中的undefined reference to “xxx”问题

3、后来才发现,头文件的添加中,不赞迢鹣嘞仅要添加".h"文件,也要添加“.c"文件,更改剧安颌儿如下:#include "watchdog/watchdog.h"#include "watchdog/watchdog.c"

NiosII中的undefined reference to “xxx”问题
© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com