ESP-Library icon indicating copy to clipboard operation
ESP-Library copied to clipboard

ESP32-C3 undefined reference to `WiFiConnector::addAPtoEEPROM(char const*, char const*, IPAddress, IPAddress, IPAddress, IPAddress)

Open buccaneer-jak opened this issue 1 year ago • 2 comments

With an ESP32-C3 I'm trying to use library version 2.1.0-RC5 on IDE 2.0.4 and get the error message. It compiles correctly for the ESP32-Dev board, ESP32-S3 and ESP32-S2

IOTAppStory-ESP\espressif\WiFiConnector.cpp.o: in function `WiFiConnector::addAPtoEEPROM(char const*, char const*, String, String, String, String)':

undefined reference to `WiFiConnector::addAPtoEEPROM(char const*, char const*, IPAddress, IPAddress, IPAddress, IPAddress)

collect2.exe: error: ld returned 1 exit status

Any ideas as now my brain hurts trying to solve this one.

buccaneer-jak avatar Apr 03 '23 13:04 buccaneer-jak

Hello Jak, I will try to look into this issue later this evening. Are you by any chance the same Jak that just joined our discord server? If so, please post a screenshot of the feedback from the compiler if you can.

CwlBroeders avatar Apr 03 '23 14:04 CwlBroeders

I forgot to mention it was while compiling IASLoader.

c:/users/jak/appdata/local/arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/gcc8_4_0-esp-2021r2-patch5/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: C:\Users\jak\AppData\Local\Temp\arduino\sketches\A37FE068B304633AC1B1B78F901314D1\libraries\IOTAppStory-ESP\espressif\WiFiConnector.cpp.o: in function WiFiConnector::addAPtoEEPROM(char const*, char const*, String, String, String, String)': c:\Users\jak\Documents\Arduino\Sketches\libraries\IOTAppStory-ESP\src\espressif/WiFiConnector.cpp:175: undefined reference to WiFiConnector::addAPtoEEPROM(char const*, char const*, IPAddress, IPAddress, IPAddress, IPAddress)' collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

buccaneer-jak avatar Apr 03 '23 17:04 buccaneer-jak