11.c(8): error C129: missing ';' before 'SH_CP' 11.c - 1 Error(s), 0 Warning(s).
时间: 2024-02-25 14:57:08 浏览: 24
这个错误通常是由于代码中缺少分号导致的。根据您提供的代码片段,我注意到在定义Sbit时,每个语句末尾都缺少分号。请在每行语句的末尾添加分号并重新编译代码,应该就可以解决这个问题了。例如:
```
Sbit SH_CP =P1^5;
Sbit ds =P1^6;
Sbit ST_CP =P1^7;
Sbit SDO_P =2^3;
Sbit SCK =P2^5;
Sbit CONV =P2^7;
```
应该修改为:
```
Sbit SH_CP =P1^5;
Sbit ds =P1^6;
Sbit ST_CP =P1^7;
Sbit SDO_P =2^3;
Sbit SCK =P2^5;
Sbit CONV =P2^7;
```
请注意,这个错误可能不止出现在这个位置,您需要仔细检查所有的语句并确保它们都以分号结束。
相关问题
Car.c(60): error C129: missing ';' before 'First_Int'
这个错误通常是由于在 'Car.c' 文件中的第60行,'First_Int' 变量之前缺少了分号引起的。请确保在 'First_Int' 变量之前添加一个分号,以解决这个错误。例如:
```c
int First_Int;
```
如果问题仍然存在,请检查前一行的代码是否正确,并确保没有其他语法错误。
DHT11.c(38): error C129: missing ';' before 'receive'
The error message "missing ';' before 'receive'" typically occurs when there is a syntax error in the code. In this, it seems that there is a missing semicolon before the function name 'receive'.
To fix this error, you need to add a semicolon (;) before the function name 'receive' on line 38 of the DHT11.c file.
Here's an example of how the corrected line might look:
```c
int receive(void);
```
Make sure to check for any other syntax errors in the code as well.
相关推荐
![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)