ошибка в программе
я хочу добавить \ перед всей строкой и сделать полностью проверку, но возникает проблема при запуске программы, компьютер думает что я комментарий недописал на месте этих \.
main.cpp:8:7: warning: missing terminating ‘ character [-Winvalid-pp-token]
s = ‘\’ + s;
^
main.cpp:8:7: error: expected expression
main.cpp:11:17: warning: missing terminating ‘ character [-Winvalid-pp-token]
if (s[i] == ‘\’)
^
main.cpp:14:26: warning: missing terminating ‘ character [-Winvalid-pp-token]
while (s[a + 1] != ‘\’ && a + 1
хотелось бы убрать эти ошибки
Arduino.ru
ошибки при компиляции помогите пожалуйста разобраться
- Войдите на сайт для отправки комментариев
37 ответов [Последнее сообщение]
Сб, 12/05/2018 — 09:30
Зарегистрирован: 12.05.2018
Здравствуйте! нужна помощь хочу повторить проект погодная станция на dht22 но при компиляции всех вариантов скетчей скаченных из разных мест выдает ошибки при компиляции в arduino ide(это только маленький кусок ошибок):
In file included from /home/notebook/Arduino/sketch_dht22/sketch_dht22.ino:5:0:
/home/notebook/Arduino/libraries/BlynkSimpleEsp8266/BlynkSimpleEsp8266.h:30:3: error: stray ‘\302’ in program
/home/notebook/Arduino/libraries/BlynkSimpleEsp8266/BlynkSimpleEsp8266.h:30:3: error: stray ‘\267’ in program
/home/notebook/Arduino/libraries/BlynkSimpleEsp8266/BlynkSimpleEsp8266.h:30:3: error: stray ‘\302’ in program
/home/notebook/Arduino/libraries/BlynkSimpleEsp8266/BlynkSimpleEsp8266.h:30:3: error: stray ‘\267’ in program
In file included from /home/notebook/Arduino/sketch_dht22/sketch_dht22.ino:5:0:
/home/notebook/Arduino/libraries/BlynkSimpleEsp8266/BlynkSimpleEsp8266.h:158:3: error: missing terminating ‘ character
Missing terminating character что за ошибка
15,767,797 members
Sign in
Sign in with

Advertise
Privacy
Cookies
Terms of Use
Last Updated 1 May 2023
Copyright © CodeProject, 1999-2023
All Rights Reserved.
CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900
Saved searches
Use saved searches to filter your results more quickly
Cancel Create saved search
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: missing terminating » character #765
jourjine opened this issue Aug 29, 2016 · 9 comments
error: missing terminating » character #765
jourjine opened this issue Aug 29, 2016 · 9 comments
Comments
jourjine commented Aug 29, 2016
Configuration
Operating system:
MAC OSX
PlatformIO Version ( platformio —version ):
PlatformIO, version 2.11.2
Description of problem
not build it
on original Arduino IDE no problem
Steps to Reproduce
Actual Results
/Users/KOCMOHABT/Documents/Arduino/Scetches/Wi-Fi-Sensor-master/esp_sensor/src/esp_sensor.ino:268:1: warning: missing t
erminating » character [enabled by default]
»
^
/Users/KOCMOHABT/Documents/Arduino/Scetches/Wi-Fi-Sensor-master/esp_sensor/src/esp_sensor.ino:268:1: error: missing ter
minating » character
Expected Results
If problems with PlatformIO Build System:
The content of platformio.ini :
[env:esp8285]
platform = espressif
framework = arduino
board = esp8285
Source file to reproduce issue:
Additional info
The text was updated successfully, but these errors were encountered:
jourjine commented Aug 29, 2016
ivankravets commented Aug 29, 2016
Try to remove Cyrillic comments.
jourjine commented Aug 29, 2016
removed, still have problem
ivankravets commented Aug 29, 2016
Where is updated file?
jourjine commented Aug 29, 2016
ivankravets added bug and removed help wanted labels Aug 29, 2016
ivankravets added this to the 3.0.0 milestone Aug 29, 2016
ivankravets self-assigned this Aug 29, 2016
jourjine commented Aug 29, 2016
imho overly long string in quotes. if I it is reduced to a few lines, then it becomes normal
ivankravets commented Aug 30, 2016
The problem is linked with INO > CPP converter. If you convert your source code to CPP manually, you will not have problems.
In any case, this is a bug and I’m working on it.
ivankravets closed this as completed in bb62444 Sep 1, 2016
ivankravets commented Sep 1, 2016
ivankravets added a commit that referenced this issue Sep 7, 2016
#742, #459, #542, #763, #759, #753, #757, #749, #748, #745, #519, #709, #743, #413, #498, #410, #740, #361, #414, #554, #732, #588, #475, #461, #101, #719, #721, #537, #415, #522, #289, #556, #570, #456, #617, #432, #408, #479, #667, #510)
ivankravets added a commit that referenced this issue Sep 9, 2016
* develop: Fix incorrect line order when converting from INO to CPP and pointer is used Fix unit test Notify about `version` field when creating library Add support for SparkFun Blynk Board Return valid exit code from ``plaformio test`` command Disable SSL Server-Name-Indication for Python < 2.7.9 Version bump to 3.0.1 (issue #772) Disable temporary SSL for PlatformIO services // Resolve #772 Version bump to 3.0.0 (issues #770, #766, #747, #730, #765, #640, #659, #742, #459, #542, #763, #759, #753, #757, #749, #748, #745, #519, #709, #743, #413, #498, #410, #740, #361, #414, #554, #732, #588, #475, #461, #101, #719, #721, #537, #415, #522, #289, #556, #570, #456, #617, #432, #408, #479, #667, #510) Fix menu height for docs Fix issue with multiple archives when linking firmware Add migration guide for PIO2 to PIO3 Search libraries by headers/includes with ``platformio lib search --header`` option Update pio run command examples Add Unit Testing Demo Update PIO Plus badge title and link Add PlatformIO Plus badge Add links to PlatformIO Plus
2 participants
Footer
© 2023 GitHub, Inc.
You can’t perform that action at this time.