bblanchon / ArduinoJson

📟 JSON library for Arduino and embedded C++. Simple and efficient.
https://arduinojson.org
MIT License
6.7k stars 1.12k forks source link

compilation error #2068

Closed mpsampaio closed 6 months ago

mpsampaio commented 6 months ago

Description error occurs in compilation. from C:\Users\mpsam\PROJETOS-ARDUINO\esp8266-fastled-webserver-main\esp8266-fastled-webserver\esp8266-fastled-webserver\esp8266-fastled-webserver.ino:19: c:\Users\mpsam\OneDrive\Documentos\Arduino\projetos\libraries\ArduinoJson\src/ArduinoJson/Variant/Converter.hpp:9:1: error: pasting ")" and "2" does not give a valid preprocessing token 9 | ARDUINOJSON_BEGIN_PUBLIC_NAMESPACE

Troubleshooter's report

  1. The program uses ArduinoJson 7
  2. The issue happens at compile time
  3. The error is not in the list

Environment

scottchiefbaker commented 6 months ago

@mpsampaio this bug report isn't very helpful unless you post your code.

bblanchon commented 6 months ago

In all likelihood, there is a problem with one of the following macros:

They can only be set to 0 or 1 and nothing else.

mpsampaio commented 6 months ago

Thank you for your attention, sorry for the inconvenience. I switched to vscode/platformio and reviewed the dependencies. now the project compiles without errors. thanks