-
Notifications
You must be signed in to change notification settings - Fork 141
Description
描述一下这个bug / Describe the bug
尝试很多办法均无法编译成功
复现步骤 / To Reproduce
编译报错
预期的行为 / Expected behavior
希望编译成功
截图 / Screenshots
日志 / Logs
In file included from D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:16:
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\wifi_config.h:1:1: error: '' does not name a type
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:44:3: error: 'PushType' does not name a type
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino: In function 'void saveConfig()':
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:127:85: error: 'struct PushChannel' has no member named 'type'
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino: In function 'void loadConfig()':
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:155:28: error: 'struct PushChannel' has no member named 'type'
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:155:36: error: 'PushType' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:168:28: error: 'struct PushChannel' has no member named 'type'
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:168:78: error: 'PUSH_TYPE_BARK' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:168:95: error: 'PUSH_TYPE_POST_JSON' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino: In function 'bool isPushChannelValid(const PushChannel&)':
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:181:14: error: 'const struct PushChannel' has no member named 'type'
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:182:10: error: 'PUSH_TYPE_POST_JSON' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:183:10: error: 'PUSH_TYPE_BARK' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:184:10: error: 'PUSH_TYPE_GET' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:185:10: error: 'PUSH_TYPE_DINGTALK' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:186:10: error: 'PUSH_TYPE_FEISHU' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:187:10: error: 'PUSH_TYPE_CUSTOM' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:189:10: error: 'PUSH_TYPE_PUSHPLUS' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:190:10: error: 'PUSH_TYPE_SERVERCHAN' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:192:10: error: 'PUSH_TYPE_GOTIFY' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:194:10: error: 'PUSH_TYPE_TELEGRAM' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino: In function 'void handleRoot()':
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:765:75: error: 'struct PushChannel' has no member named 'type'
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:765:83: error: 'PUSH_TYPE_POST_JSON' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:766:75: error: 'struct PushChannel' has no member named 'type'
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:766:83: error: 'PUSH_TYPE_BARK' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:767:75: error: 'struct PushChannel' has no member named 'type'
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:767:83: error: 'PUSH_TYPE_GET' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:768:75: error: 'struct PushChannel' has no member named 'type'
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:768:83: error: 'PUSH_TYPE_DINGTALK' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:769:75: error: 'struct PushChannel' has no member named 'type'
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:769:83: error: 'PUSH_TYPE_PUSHPLUS' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:770:75: error: 'struct PushChannel' has no member named 'type'
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:770:83: error: 'PUSH_TYPE_SERVERCHAN' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:771:75: error: 'struct PushChannel' has no member named 'type'
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:771:83: error: 'PUSH_TYPE_CUSTOM' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:772:75: error: 'struct PushChannel' has no member named 'type'
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:772:83: error: 'PUSH_TYPE_FEISHU' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:773:75: error: 'struct PushChannel' has no member named 'type'
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:773:83: error: 'PUSH_TYPE_GOTIFY' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:774:76: error: 'struct PushChannel' has no member named 'type'
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:774:84: error: 'PUSH_TYPE_TELEGRAM' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino: In function 'void handleSave()':
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:1533:28: error: 'struct PushChannel' has no member named 'type'
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:1533:36: error: 'PushType' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino: In function 'void sendToChannel(const PushChannel&, const char*, const char*, const char*)':
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:1989:27: error: 'const struct PushChannel' has no member named 'type'
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:1989:35: error: 'PUSH_TYPE_POST_JSON' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:1989:66: error: 'const struct PushChannel' has no member named 'type'
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:1989:74: error: 'PUSH_TYPE_BARK' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:1990:27: error: 'const struct PushChannel' has no member named 'type'
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:1990:35: error: 'PUSH_TYPE_GET' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:1990:60: error: 'const struct PushChannel' has no member named 'type'
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:1990:68: error: 'PUSH_TYPE_DINGTALK' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:1991:27: error: 'const struct PushChannel' has no member named 'type'
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:1991:35: error: 'PUSH_TYPE_CUSTOM' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:1995:94: error: 'const struct PushChannel' has no member named 'type'
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:2003:19: error: 'const struct PushChannel' has no member named 'type'
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:2078:10: error: 'PUSH_TYPE_PUSHPLUS' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:2104:10: error: 'PUSH_TYPE_SERVERCHAN' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:2133:10: error: 'PUSH_TYPE_FEISHU' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:2171:10: error: 'PUSH_TYPE_GOTIFY' was not declared in this scope
D:\资料\SMS\sms_forwarding-master\sms_forwarding-master\code\code.ino:2190:10: error: 'PUSH_TYPE_TELEGRAM' was not declared in this scope
exit status 1
Compilation error: '' does not name a type
验证
- 检查该问题是否已被提过 / Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- 提供了最小可复现工程或详细的复现步骤,确保开发者可以复现 / The provided reproduction is a minimal reproducible example of the bug.
- 我已经提供了完整的日志 / I have provided complete logs.