MicroOcpp icon indicating copy to clipboard operation
MicroOcpp copied to clipboard

undefined reference to `setup()'

Open aleksandr56 opened this issue 1 year ago • 1 comments

I installed Platform IO

Open VSCode Extension Manager Search for official PlatformIO IDE extension Install PlatformIO IDE. I downloaded code from Github https://github.com/matth-x/MicroOcpp click build: Building in release mode Linking .pio\build\esp32-development-board\firmware.elf c:/users/taras/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/esp32-development-board/libFrameworkArduino.a(main.cpp.o):(.literal._Z8loopTaskPv+0x8): undefined reference to setup()' c:/users/taras/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/esp32-development-board/libFrameworkArduino.a(main.cpp.o):(.literal._Z8loopTaskPv+0xc): undefined reference to loop()' c:/users/taras/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/esp32-development-board/libFrameworkArduino.a(main.cpp.o): in function loopTask(void*)': C:/Users/Taras/.platformio/packages/[email protected]/cores/esp32/main.cpp:42: undefined reference to setup()' c:/users/taras/.platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/Taras/.platformio/packages/[email protected]/cores/esp32/main.cpp:48: undefined reference to `loop()' collect2.exe: error: ld returned 1 exit status *** [.pio\build\esp32-development-board\firmware.elf] Error 1 help me please

aleksandr56 avatar Mar 07 '24 15:03 aleksandr56