olkal/HX711_ADC

Error compiling ESP12E

Sutikno1406 opened this issue · 4 comments

When i'm compiling show error :

Warning: platform.txt from core 'ESP8266 Modules' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.
libraries\HX711_ADC\HX711_ADC.cpp.o: In function HX711_ADC::update()': HX711_ADC.cpp:(.text+0x274): undefined reference to __cxa_guard_acquire'
HX711_ADC.cpp:(.text+0x278): undefined reference to __cxa_guard_release' libraries\HX711_ADC\HX711_ADC.cpp.o: In function HX711_ADC::startMultiple(unsigned long)':
HX711_ADC.cpp:(.text+0x2e4): undefined reference to __cxa_guard_acquire' HX711_ADC.cpp:(.text+0x2fc): undefined reference to __cxa_guard_release'
HX711_ADC.cpp:(.text+0x3c3): undefined reference to __cxa_guard_acquire' libraries\HX711_ADC\HX711_ADC.cpp.o: In function HX711_ADC::startMultiple(unsigned long, bool)':
HX711_ADC.cpp:(.text+0x3dc): undefined reference to `__cxa_guard_release'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board NodeMCU (ESP8266 ESP-12 Module).

How can solve this error ?
Thanks
Sutikno

olkal commented

Hi!
Are you compiling using the Arduino IDE?
Have you upgraded to the latest version of the ESP8266 Core as suggested in the error message?

Hi Olkal,
Yes, compiling use Arduino IDE ver 1.8.16
Upgrade firmware of ESP8266 or library on arduino IDE ?

olkal commented

It's in the Arduino IDE, you can update the core (ESP8266 package) by opening the Boards Manager from Tools -> Board menu.
3.02 seems to be the latest official release.