implicit declaration of function ‘gpio_direction_output’ [-Wimplicit-function-declaration
时间: 2023-11-19 10:16:00 浏览: 228
这个警告"implicit declaration of function ‘gpio_direction_output’ [-Wimplicit-function-declaration]"意味着在当前的编译单元中没有找到名为"gpio_direction_output"的函数的声明。编译器建议你是否想使用类似的函数"gpio_direction_out",并且默认构造了一个假设的函数"gpio_direction_out",但返回值是int类型,因此还有一个警告说从int转换为const char *需要进行转换。
通常,当你在调用一个函数之前没有显式声明它时,编译器会报这个错误。要解决这个问题,你需要在调用函数之前提前声明函数或包含正确的头文件。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [编译错误 error: implicit declaration of function ‘getopt’ [-Werror=implicit-function-declaration] ...](https://blog.csdn.net/qq_44839144/article/details/128067523)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文