Skip to content
New issue

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

can't get this compiled anymore #2

Open
barnosch opened this issue Mar 23, 2023 · 0 comments
Open

can't get this compiled anymore #2

barnosch opened this issue Mar 23, 2023 · 0 comments

Comments

@barnosch
Copy link
Contributor

Hi, sadly i killed my ESP8266 with my working beloved Wordclock.
Sadly my old Laptop with a working copy of all the correct libraries and the sketch does not live anymore, aswell.

With a new installed Arduino IDE 2 i do not get this compiled anymore.
"NtpClientLib" thors the error but i guess of the ESP8266 package?

In file included from C:\Users\U939\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\cores\esp8266/LwipDhcpServer.h:36,
                 from C:\Users\U939\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/ESP8266WiFiAP.h:30,
                 from C:\Users\U939\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:35,
                 from C:\Users\U939\Documents\Arduino\Wordclock.ino\Wordclock.ino.ino:5:
c:\users\u939\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.1.0-gcc10.3-e5f9fec\xtensa-lx106-elf\include\c++\10.3.0\cstddef:69:14: note: candidates are: 'enum class std::byte'
   69 |   enum class byte : unsigned char {};
      |              ^~~~
In file included from C:\Users\U939\AppData\Local\Temp\arduino\sketches\106AC9E4B315C03275A87497DE1237CE\sketch\Wordclock.ino.ino.cpp:1:
C:\Users\U939\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\cores\esp8266/Arduino.h:161:17: note:                 'typedef uint8_t byte'
  161 | typedef uint8_t byte;

In file included from C:\Users\U939\Documents\Arduino\Wordclock.ino\Wordclock.ino.ino:19:
c:\Users\U939\Documents\Arduino\libraries\NtpClientLib\src/NtpClientLib.h:501:32: error: **reference to 'byte' is ambiguous**
  501 |     bool summertime (int year, byte month, byte day, byte hour, byte weekday, byte tzHours);

In file included from C:\Users\U939\Documents\Arduino\Wordclock.ino\Wordclock.ino.ino:19:
c:\Users\U939\Documents\Arduino\libraries\NtpClientLib\src/NtpClientLib.h:501:79: error**: 'byte' has not been declared**
  501 |     bool summertime (int year, byte month, byte day, byte hour, byte weekday, byte tzHours);
      |                                                                               ^~~~

is the error. I tried all the different Versions of the lib.

Do you have maybe the correct libraries or can give me a hint?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant