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

DaisyDuino pod/MusicBox example compilation error #63

Open
diyelectromusic opened this issue Dec 18, 2024 · 0 comments
Open

DaisyDuino pod/MusicBox example compilation error #63

diyelectromusic opened this issue Dec 18, 2024 · 0 comments

Comments

@diyelectromusic
Copy link

With DaisyDuino v1.7.0, Arduino IDE v2.3.4 and STM32 Core v2.9.0, the pod/MusicBox example produces the following compilation error:

MusicBox\MusicBox.ino:32:18: error: 'float time' redeclared as different kind of entity
   32 | float vamt, dec, time;
      |                  ^~~~
In file included from Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/13.2.1-1.1/arm-none-eabi/include/sys/time.h:414,
                 from Arduino15\packages\STMicroelectronics\hardware\stm32\2.9.0\cores\arduino/wiring_time.h:25,
                 from Arduino15\packages\STMicroelectronics\hardware\stm32\2.9.0\cores\arduino/wiring.h:38,
                 from Arduino15\packages\STMicroelectronics\hardware\stm32\2.9.0\cores\arduino/Arduino.h:36,
                 from sketch\MusicBox.ino.cpp:1:
Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/13.2.1-1.1/arm-none-eabi/include/time.h:59:12: note: previous declaration 'time_t time(time_t*)'
   59 | time_t     time (time_t *_timer);
      |            ^~~~

exit status 1

Compilation error: 'float time' redeclared as different kind of entity

Removing the unused "time" variable from the mentioned line 32 seems to solve it.

Kevin

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