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

Problems compiling #22

Open
m0nde opened this issue May 5, 2021 · 6 comments
Open

Problems compiling #22

m0nde opened this issue May 5, 2021 · 6 comments

Comments

@m0nde
Copy link

m0nde commented May 5, 2021

I am no expert in Arduino and trying to build this clock for my son. I have built the hardware and he has printed all the clock pieces. When I compile the code for the nano I get this error. Can someone please help me get past this issue please?
Arduino: 1.8.13 (Windows 10), Board: "Arduino Nano, ATmega328P"

In file included from C:\Users\nigel\Documents\Arduino\libraries\src/bitswap.h:4:0,

             from C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock\3D-7-Segment-Digital-Clock.ino:1:

C:\Users\nigel\Documents\Arduino\libraries\src/FastLED.h:14:21: note: #pragma message: FastLED version 3.004.000

pragma message "FastLED version 3.004.000"

                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\nigel\AppData\Local\Temp\ccKsavlE.ltrans0.ltrans.o: In function `displayClock':

C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:267: undefined reference to `RTC_DS3231::now()'

C:\Users\nigel\AppData\Local\Temp\ccKsavlE.ltrans0.ltrans.o: In function `processCommand':

C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:240: undefined reference to `DateTime::DateTime(unsigned int, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'

C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:240: undefined reference to `RTC_DS3231::adjust(DateTime const&)'

C:\Users\nigel\AppData\Local\Temp\ccKsavlE.ltrans0.ltrans.o: In function `global constructors keyed to 65535_0_3D_7_Segment_Digital_Clock.ino.cpp.o.4410':

:(.text.startup+0x1bc): undefined reference to `Timer::Timer()'

:(.text.startup+0x1c4): undefined reference to `Timer::Timer()'

:(.text.startup+0x1cc): undefined reference to `Timer::Timer()'

C:\Users\nigel\AppData\Local\Temp\ccKsavlE.ltrans0.ltrans.o: In function `setup':

C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:118: undefined reference to `RTC_DS3231::begin()'

C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:123: undefined reference to `RTC_DS3231::lostPower()'

C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:126: undefined reference to `DateTime::DateTime(__FlashStringHelper const*, __FlashStringHelper const*)'

C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:126: undefined reference to `RTC_DS3231::adjust(DateTime const&)'

C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:129: undefined reference to `Timer::every(unsigned long, void (*)())'

C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:130: undefined reference to `Timer::every(unsigned long, void (*)())'

C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:131: undefined reference to `Timer::every(unsigned long, void (*)())'

C:\Users\nigel\AppData\Local\Temp\ccKsavlE.ltrans0.ltrans.o: In function `loop':

C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:137: undefined reference to `Timer::update()'

C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:138: undefined reference to `Timer::update()'

C:\Users\nigel\Documents\Arduino\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock-master\3D-7-Segment-Digital-Clock/3D-7-Segment-Digital-Clock.ino:139: undefined reference to `Timer::update()'

collect2.exe: error: ld returned 1 exit status

exit status 1

Error compiling for board Arduino Nano.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@Alex-Ender35
Copy link

Hello, m0nde, you managed to solve your problem with the compilation errors. If so, how?

@Alex-Ender35
Copy link

Alex-Ender35 commented Jun 15, 2023

Which libraries have you used? Or maybe you have made changes in the firmware code?

@m0nde
Copy link
Author

m0nde commented Jun 15, 2023 via email

@Alex-Ender35
Copy link

Извините, здесь не повезло, с уважением, Найджел.

Чт, 15 Июн 2023, 02:36 Alex-Ender35, @.> написал: Здравствуйте, m0nde, вам удалось решить проблему с ошибками компиляции. Если да, то как? — Ответьте на это письмо напрямую, просмотрите его на GitHub < # 22 (комментарий) > или отмените подписку < https://github.com/notifications/unsubscribe-auth/ACJHOW2OUBRURH4WYW3SLXDXLJRJDANCNFSM44FM7I6A > . Вы получили это сообщение, потому что являетесь автором темы. Идентификатор сообщения: @. com>

@Alex-Ender35
Copy link

Dear Nigel, I am very sorry that you did not succeed. I was able to solve the problem 5 minutes ago. In the author's sketch, there are links to the necessary libraries. After installing them, everything worked. If you are still interested, try installing them. Sincerely, Alex.

@Genasaf
Copy link

Genasaf commented May 9, 2024

Все работает скетч грузится

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

3 participants