Merhaba;
Visual Studio Code üzerinde PlatformIO eklentisi ile proje geliştiriyorum.
Kodlarımı ve ler içine alarak sınıflara ayırdığımda hata alıyorum. Muhtemelen kod öncelik sırası hatası. Bunu nasıl çözebilirim?
— Hata kodum–
PACKAGES:
- framework-arduinoespressif8266 @ 3.30002.0 (3.0.2)
- tool-esptool @ 1.413.0 (4.13)
- tool-esptoolpy @ 1.30000.201119 (3.0.0)
- toolchain-xtensa @ 2.100300.210717 (10.3.0)
LDF: Library Dependency Finder → Library Dependency Finder (LDF) — PlatformIO latest documentation
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 35 compatible libraries
Scanning dependencies…
Dependency Graph
|-- ESP8266HTTPClient @ 1.2
| |-- ESP8266WiFi @ 1.0
|-- ESP8266WiFi @ 1.0
Building in release mode
Compiling .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o
Linking .pio\build\nodemcuv2\firmware.elf
c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/…/lib/gcc/xtensa-lx106-elf/10.3.0/…/…/…/…/xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\LedIslemleri.cpp.o:(.bss.ledBeklemeSonZaman+0x0): multiple definition ofledBeklemeSonZaman'; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.bss.ledBeklemeSonZaman+0x0): first defined here c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\LedIslemleri.cpp.o:(.data.ledBeklemeSuresi+0x0): multiple definition of
ledBeklemeSuresi’; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.data.ledBeklemeSuresi+0x0): first defined
here
c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/…/lib/gcc/xtensa-lx106-elf/10.3.0/…/…/…/…/xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\LedIslemleri.cpp.o:(.bss.butonBasmaSayisi+0x0): multiple definition ofbutonBasmaSayisi'; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.bss.butonBasmaSayisi+0x0): first defined here c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\LedIslemleri.cpp.o:(.bss.butonOncekiDurum+0x0): multiple definition of
butonOncekiDurum’; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.bss.butonOncekiDurum+0x0): first defined here
c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/…/lib/gcc/xtensa-lx106-elf/10.3.0/…/…/…/…/xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\LedIslemleri.cpp.o:(.bss.butonDurumu+0x0): multiple definition ofbutonDurumu'; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.bss.butonDurumu+0x0): first defined here c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\LedIslemleri.cpp.o:(.data.butonBasmaBeklemeSuresi+0x0): multiple definition of
butonBasmaBeklemeSuresi’; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.data.butonBasmaBeklemeSuresi+0x0): first defined here
c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/…/lib/gcc/xtensa-lx106-elf/10.3.0/…/…/…/…/xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\LedIslemleri.cpp.o:(.bss.butonSonBasmaZamani+0x0): multiple definition ofbutonSonBasmaZamani'; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.bss.butonSonBasmaZamani+0x0): first defined here c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\LedIslemleri.cpp.o:(.data.timerDelay+0x0): multiple definition of
timerDelay’; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.data.timerDelay+0x0): first defined here
c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/…/lib/gcc/xtensa-lx106-elf/10.3.0/…/…/…/…/xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\LedIslemleri.cpp.o:(.bss.lastTime+0x0): multiple definition oflastTime'; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.bss.lastTime+0x0): first defined here c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\Tanimlamalar.cpp.o:(.bss.ledBeklemeSonZaman+0x0): multiple definition of
ledBeklemeSonZaman’; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.bss.ledBeklemeSonZaman+0x0): first defined here
c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/…/lib/gcc/xtensa-lx106-elf/10.3.0/…/…/…/…/xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\Tanimlamalar.cpp.o:(.data.ledBeklemeSuresi+0x0): multiple definition ofledBeklemeSuresi'; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.data.ledBeklemeSuresi+0x0): first defined here c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\Tanimlamalar.cpp.o:(.bss.butonOncekiDurum+0x0): multiple definition of
butonOncekiDurum’; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.bss.butonOncekiDurum+0x0): first defined here
c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/…/lib/gcc/xtensa-lx106-elf/10.3.0/…/…/…/…/xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\Tanimlamalar.cpp.o:(.bss.butonDurumu+0x0): multiple definition ofbutonDurumu'; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.bss.butonDurumu+0x0): first defined here c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\Tanimlamalar.cpp.o:(.bss.butonBasmaSayisi+0x0): multiple definition of
butonBasmaSayisi’; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.bss.butonBasmaSayisi+0x0): first defined here
c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/…/lib/gcc/xtensa-lx106-elf/10.3.0/…/…/…/…/xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\Tanimlamalar.cpp.o:(.data.butonBasmaBeklemeSuresi+0x0): multiple definition ofbutonBasmaBeklemeSuresi'; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.data.butonBasmaBeklemeSuresi+0x0): first defined here c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\Tanimlamalar.cpp.o:(.bss.butonSonBasmaZamani+0x0): multiple definition of
butonSonBasmaZamani’; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.bss.butonSonBasmaZamani+0x0): first defined here
c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/…/lib/gcc/xtensa-lx106-elf/10.3.0/…/…/…/…/xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\Tanimlamalar.cpp.o:(.data.timerDelay+0x0): multiple definition oftimerDelay'; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.data.timerDelay+0x0): first defined here c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\Tanimlamalar.cpp.o:(.bss.lastTime+0x0): multiple definition of
lastTime’; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.bss.lastTime+0x0): first defined here
c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/…/lib/gcc/xtensa-lx106-elf/10.3.0/…/…/…/…/xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\main.cpp.o:(.bss.butonSonBasmaZamani+0x0): multiple definition ofbutonSonBasmaZamani'; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.bss.butonSonBasmaZamani+0x0): first defined here c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\main.cpp.o:(.data.butonBasmaBeklemeSuresi+0x0): multiple definition of
butonBasmaBeklemeSuresi’; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.data.butonBasmaBeklemeSuresi+0x0): first defined here
c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/…/lib/gcc/xtensa-lx106-elf/10.3.0/…/…/…/…/xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\main.cpp.o:(.bss.butonBasmaSayisi+0x0): multiple definition ofbutonBasmaSayisi'; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.bss.butonBasmaSayisi+0x0): first defined here c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\main.cpp.o:(.bss.butonDurumu+0x0): multiple definition of
butonDurumu’; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.bss.butonDurumu+0x0): first defined here
c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/…/lib/gcc/xtensa-lx106-elf/10.3.0/…/…/…/…/xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\main.cpp.o:(.bss.LedIslem+0x0): multiple definition ofLedIslem'; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.bss.LedIslem+0x0): first defined here c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\main.cpp.o:(.bss.butonOncekiDurum+0x0): multiple definition of
butonOncekiDurum’; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.bss.butonOncekiDurum+0x0): first defined here
c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/…/lib/gcc/xtensa-lx106-elf/10.3.0/…/…/…/…/xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\main.cpp.o:(.bss.HostAyarlari+0x0): multiple definition ofHostAyarlari'; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.bss.HostAyarlari+0x0): first defined here c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\main.cpp.o:(.bss.ledBeklemeSonZaman+0x0): multiple definition of
ledBeklemeSonZaman’; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.bss.ledBeklemeSonZaman+0x0): first defined herec:/users/asg5/.platformio/packages/toolchain-xtensa/bin/…/lib/gcc/xtensa-lx106-elf/10.3.0/…/…/…/…/xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\main.cpp.o:(.data.ledBeklemeSuresi+0x0): multiple definition ofledBeklemeSuresi'; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.data.ledBeklemeSuresi+0x0): first defined here c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\main.cpp.o:(.data.timerDelay+0x0): multiple definition of
timerDelay’; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.data.timerDelay+0x0): first defined here
c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/…/lib/gcc/xtensa-lx106-elf/10.3.0/…/…/…/…/xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\main.cpp.o:(.bss.lastTime+0x0): multiple definition oflastTime'; .pio\build\nodemcuv2\src\HTTPIslemleri.cpp.o:(.bss.lastTime+0x0): first defined here c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\main.cpp.o:(.text.loop+0x20): undefined reference to
_ZN12LedIslemleri18LedSistemCalisiyorEv’
c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/…/lib/gcc/xtensa-lx106-elf/10.3.0/…/…/…/…/xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\main.cpp.o:(.text.loop+0x28): undefined reference to_ZN12LedIslemleri19LedHttpGonderiliyorEv' c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\nodemcuv2\src\main.cpp.o: in function
loop’:
main.cpp:(.text.loop+0x69): undefined reference to_ZN12LedIslemleri18LedSistemCalisiyorEv' c:/users/asg5/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: main.cpp:(.text.loop+0x9d): undefined reference to
_ZN12LedIslemleri19LedHttpGonderiliyorEv’
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\nodemcuv2\firmware.elf] Error 1
====================================================================== [FAILED] Took 4.09 seconds ======================================================================