lcd1602.h(3): error C141: syntax error near 'dat', expected ')' lcd1602.h(4): error C129: missing ';' before 'DS18B20_R'
时间: 2023-06-27 20:05:34 浏览: 111
这个错误提示看起来是在 `lcd1602.h` 文件的第 3 和第 4 行出现了语法错误。
第一个错误是说在 `dat` 附近出现了语法错误,期望是一个右括号 `)`。这个错误很有可能是因为在该行代码中,缺少了一个右括号或者其他语法符号,导致编译器无法正确解析该行代码。你可以仔细检查一下该行代码,看看是否有括号、分号、逗号等符号缺失或者位置不正确。
第二个错误是说在 `lcd1602.h` 文件的第 4 行缺少了一个分号 `;`,导致编译器无法正确解析该行代码。你可以在该行代码的末尾加上一个分号,然后重新编译程序,看看是否还会出现该错误。
相关问题
LCD2.c(42): error C141: syntax error near ';', expected 'hdata'
这个错误提示表明在LCD2.c文件的第42行附近,出现了一个语法错误。具体来说,编译器预期在该位置看到一个'hdata'标识符,但是遇到了一个分号';'。可能是在声明或使用变量时出现了错误。
要解决这个问题,你可以检查LCD2.c文件中第42行的语法,确保没有错误的分号或其他语法错误。如果仍然无法解决问题,可以提供更多的代码上下文或相关信息,以便我能够更准确地帮助你。
iic.h(9): error C141: syntax error near ';', expected ')'
This error message indicates that there is a syntax error near a semicolon in line 9 of the iic.h file. The compiler expected a closing parenthesis instead of a semicolon.
To fix this error, you should check the code on line 9 and make sure that all parentheses are properly closed before the semicolon. Additionally, you may want to check for any missing or extra function or method calls in the line that could be causing the error.