You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the very latest teensy platform 4.14.0, the used framework-arduinoteensy (1.155.0) has the file cores/teensy4/Blink.cc which contains
// Only for testing with the Makefile - not actually part of the core library
#include<Arduino.h>int led = 13;
voidsetup() {
pinMode(led, OUTPUT);
}
voidloop() {
digitalWrite(led, HIGH);
delay(1000);
digitalWrite(led, LOW);
delay(1000);
}
Which, if compiled, conflicts with user-implemented setup() and loop() functions
.pio/build/teensy41/libFrameworkArduino.a(Blink.cc.o): In function setup': Blink.cc:(.text.setup+0x0): multiple definition of setup’
.pio/build/teensy41/src/main.cpp.o:main.cpp:(.text.setup+0x0): first defined here
/home/greaterebiz/.platformio/packages/toolchain-gccarmnoneeabi/bin/…/lib/gcc/arm-none-eabi/5.4.1/…/…/…/…/arm-none-eabi/bin/ld: Disabling relaxation: it will not work with multiple definitions
(conflict with src/main.cpp).
--> This Blink.cc shouldn't be in the package
on some (?) machines it causes a build failure because the user can't implement setup() and loop() anymore
both working and non-working build logs show platform-teensy version 4.14.0 being used
The text was updated successfully, but these errors were encountered:
I was getting this intermittently with Arduino IDE 2.3.2 on Mac. Commenting out the body of ~/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/cores/teensy4/Blink.cc resolved it for me.
With the very latest teensy platform 4.14.0, the used
framework-arduinoteensy
(1.155.0) has the filecores/teensy4/Blink.cc
which containsWhich, if compiled, conflicts with user-implemented
setup()
andloop()
functionsThis file is included in the build for a standard
configuration, as evident by the build log
However, the build still passes for me on my machine
For others, as explained in https://community.platformio.org/t/platformio-teensy-project-blink-cc-is-included-and-should-not-be/25070, the build fails
(conflict with
src/main.cpp
).Blink.cc
shouldn't be in the packagesetup()
andloop()
anymoreThe text was updated successfully, but these errors were encountered: