warning: implicit declaration of function 'gs_set_gpio' [-Wimplicit-function-declaration]
时间: 2023-11-19 22:53:10 浏览: 207
f1-implicit-elastic.zip_LS_DYNA fortran_dyna_dyna implicit_elas
这个警告的含义是在当前编译单元中,编译器无法找到名为'gs_set_gpio'的函数的声明。这意味着在调用该函数之前,没有在代码中显式地声明它。根据引用和引用的解释,如果函数只有定义而没有声明,会直接报错;如果函数有定义但没有声明,会出现警告。在这种情况下,编译器默认会隐式声明函数,但是这样的隐式声明在C99标准中是无效的。因此,编译器会给出警告,提示需要在调用函数之前进行声明。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [C: Warning: implicit declaration of function ‘e‘; did you mean ‘el‘?[-Wimplicit-function-...](https://blog.csdn.net/qq_36428903/article/details/121851013)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [关于Warning:Implicit declaration of function “xxx” is invalid in C99警告!](https://blog.csdn.net/family20102010/article/details/126155338)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文