'MotorCtr1' undefined; assuming 'extern int MotorCtr1()'
时间: 2024-01-19 12:03:19 浏览: 30
This error message is a compiler warning that the function 'MotorCtr1' has not been defined in the current program file, and it assumes that it is declared as an external function that is defined elsewhere.
The warning suggests that the function is expected to return an integer value, and it takes no arguments.
To resolve this warning, you need to either define the 'MotorCtr1' function in the current file or include a header file that contains its definition. Alternatively, if the function is defined in another file, you need to ensure that the file is linked properly during the build process.
相关问题
'pritnf' undefined; assuming extern returning int
这是一个常见的错误信息,意味着在程序中有一个名为'printf'的函数未被正确声明或定义。通常是因为程序中没有包含<stdio.h>头文件或者函数声明语法错误导致的。您需要根据具体情况进行修改来解决这个问题。
ips_menu.c(60): warning C140: 'ipsll4_showstr' undefined; assuming 'extern int ipsll4_showstr()'
这个警告是由编译器发出的。它告诉我们在文件ips_menu.c的第60行,函数ipsll4_showstr的定义未找到,因此假设它是一个extern int ipsll4_showstr()的函数声明。这意味着编译器无法找到该函数的实际定义。
要解决这个警告,我们需要确保ipsll4_showstr函数的定义在当前文件或其他包含的文件中可见。您可以检查是否正确包含了相关的头文件或库文件,并且确认该函数的定义在这些文件中。
如果ipsll4_showstr函数确实是第三方库中的函数,您可能需要链接该库以解决警告。确保在编译和链接过程中正确指定了库文件。
如果您已经确认了以上步骤,并且仍然收到该警告,请检查函数名的拼写是否正确,并确保函数的定义与声明匹配。
相关推荐
![xml](https://img-home.csdnimg.cn/images/20210720083646.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)