-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels