Open flaviobattimo opened 1 year ago
Hello,
trying to fix an issue while compiling some code with platformio and piduino. Was working like 2 years ago but now I'm getting an error when linking the library (compiled from sources)
Here the platformio configuration:
[env:raspberrypi_3b] platform = linux_arm board = raspberrypi_3b framework = wiringpi lib_archive = yes build_flags =
-pthread -I/usr/local/include -I/usr/local/include/piduino/arduino -L/usr/local/lib -lpiduino -lcppdb -ldl -ludev -lpthread
Here the error:
In file included from /usr/local/include/piduino/arduino/Arduino.h:289, from /usr/local/include/piduino/arduino/Piduino.h:116, from src/sketch.cpp:3: /usr/local/include/piduino/arduino/Console.h: In function ‘void setup()’: /usr/local/include/piduino/arduino/Console.h:24:7: warning: inlining failed in call to ‘virtual PiConsole::~PiConsole() noexcept’: call is unlikely and code size would grow [-Winline] 24 | class PiConsole : public Terminal { | ^~~~~ src/sketch.cpp:170:15: note: called from here 170 | PiConsole console; | ^~~ Linking .pio/build/raspberrypi_3b/program /usr/bin/ld: .pio/build/raspberrypi_3b/src/sketch.o: in function setup': sketch.cpp:(.text+0x1a0): undefined reference toPiConsole::PiConsole()' /usr/bin/ld: sketch.cpp:(.text+0x76c): undefined reference to Print::print(__FlashStringHelper const*)' /usr/bin/ld: sketch.cpp:(.text+0x784): undefined reference toPiduino::String::toString(long, unsigned char)' /usr/bin/ld: sketch.cpp:(.text+0x790): undefined reference to Print::println(Piduino::String const&)' /usr/bin/ld: sketch.cpp:(.text+0x7cc): undefined reference toPiduino::TerminalNotifier::~TerminalNotifier()' /usr/bin/ld: sketch.cpp:(.text+0x7d4): undefined reference to Piduino::FileDevice::~FileDevice()' /usr/bin/ld: sketch.cpp:(.text+0x8fc): undefined reference tovtable for PiConsole' /usr/bin/ld: .pio/build/raspberrypi_3b/src/sketch.o: in function TIntProperty::toString()': sketch.cpp:(.text._ZN12TIntProperty8toStringEv[_ZN12TIntProperty8toStringEv]+0x10): undefined reference toPiduino::String::toString(long, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/sketch.o: in function UdpInterfaceAppSettings_6436778422698_t::remoteAddress()': sketch.cpp:(.text._ZN39UdpInterfaceAppSettings_6436778422698_t13remoteAddressEv[_ZN39UdpInterfaceAppSettings_6436778422698_t13remoteAddressEv]+0x20): undefined reference toIPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/sketch.o: in function TIntProperty::setValueFromString(BaseApp*, Piduino::String)': sketch.cpp:(.text._ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE[_ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE]+0x30): undefined reference toPiduino::String::toInt() const' /usr/bin/ld: sketch.cpp:(.text._ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE[_ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE]+0x11c): undefined reference to Print::print(__FlashStringHelper const*)' /usr/bin/ld: sketch.cpp:(.text._ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE[_ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE]+0x138): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: sketch.cpp:(.text._ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE[_ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE]+0x178): undefined reference to Print::print(__FlashStringHelper const*)' /usr/bin/ld: sketch.cpp:(.text._ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE[_ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE]+0x194): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/sketch.o: in function _GLOBAL__sub_I_sketch.cpp': sketch.cpp:(.text.startup+0x48): undefined reference toPiConsole::PiConsole()' /usr/bin/ld: sketch.cpp:(.text.startup+0x12c): undefined reference to IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/sketch.o: in functionmain': sketch.cpp:(.text.startup+0x824): undefined reference to HardwareSerial::setupAvailablePorts()' /usr/bin/ld: sketch.cpp:(.text.startup+0x870): undefined reference tocreatePidFile' /usr/bin/ld: sketch.cpp:(.text.startup+0x874): undefined reference to Piduino::SysLog::cerrToSyslog()' /usr/bin/ld: sketch.cpp:(.text.startup+0x878): undefined reference toPiduino::SysLog::coutToSyslog()' /usr/bin/ld: .pio/build/raspberrypi_3b/src/sketch.o: in function PiConsole::~PiConsole()': sketch.cpp:(.text._ZN9PiConsoleD2Ev[_ZN9PiConsoleD5Ev]+0x20): undefined reference toPiduino::TerminalNotifier::~TerminalNotifier()' /usr/bin/ld: sketch.cpp:(.text._ZN9PiConsoleD2Ev[_ZN9PiConsoleD5Ev]+0x28): undefined reference to Piduino::FileDevice::~FileDevice()' /usr/bin/ld: sketch.cpp:(.text._ZN9PiConsoleD2Ev[_ZN9PiConsoleD5Ev]+0x38): undefined reference tovtable for PiConsole' /usr/bin/ld: .pio/build/raspberrypi_3b/src/sketch.o: in function PiConsole::~PiConsole()': sketch.cpp:(.text._ZN9PiConsoleD0Ev[_ZN9PiConsoleD5Ev]+0x20): undefined reference toPiduino::TerminalNotifier::~TerminalNotifier()' /usr/bin/ld: sketch.cpp:(.text._ZN9PiConsoleD0Ev[_ZN9PiConsoleD5Ev]+0x28): undefined reference to Piduino::FileDevice::~FileDevice()' /usr/bin/ld: sketch.cpp:(.text._ZN9PiConsoleD0Ev[_ZN9PiConsoleD5Ev]+0x44): undefined reference tovtable for PiConsole' /usr/bin/ld: .pio/build/raspberrypi_3b/src/Controller.o: in function Controller::setup()': Controller.cpp:(.text+0x70): undefined reference toPrint::print(FlashStringHelper const*)' /usr/bin/ld: Controller.cpp:(.text+0x84): undefined reference to Piduino::String::toString(long, unsigned char)' /usr/bin/ld: Controller.cpp:(.text+0x90): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: Controller.cpp:(.text+0xbc): undefined reference to `Print::print(FlashStringHelper const)' /usr/bin/ld: Controller.cpp:(.text+0xd0): undefined reference to Piduino::String::toString(long, unsigned char)' /usr/bin/ld: Controller.cpp:(.text+0xdc): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: Controller.cpp:(.text+0x160): undefined reference to `Print::println(__FlashStringHelper const)' /usr/bin/ld: Controller.cpp:(.text+0x178): undefined reference to Print::print(__FlashStringHelper const*)' /usr/bin/ld: Controller.cpp:(.text+0x194): undefined reference toPrint::println(FlashStringHelper const*)' /usr/bin/ld: Controller.cpp:(.text+0x1b0): undefined reference to `Print::println(FlashStringHelper const)' /usr/bin/ld: Controller.cpp:(.text+0x1c0): undefined reference to `Print::print(__FlashStringHelper const)' /usr/bin/ld: Controller.cpp:(.text+0x1e0): undefined reference to Print::println(int, int)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/Controller.o: in functionController::sendEvent(BaseApp, TAppEvent)': Controller.cpp:(.text+0x31c): undefined reference to Print::print(__FlashStringHelper const*)' /usr/bin/ld: Controller.cpp:(.text+0x338): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/Controller.o: in function Controller::debugSerialPrintProperties()': Controller.cpp:(.text+0x8e4): undefined reference toPrint::print(FlashStringHelper const*)' /usr/bin/ld: Controller.cpp:(.text+0x8f0): undefined reference to `Print::print(FlashStringHelper const)' /usr/bin/ld: Controller.cpp:(.text+0x8fc): undefined reference to `Print::print(__FlashStringHelper const)' /usr/bin/ld: Controller.cpp:(.text+0x920): undefined reference to Print::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/Controller.o: in functionTAppEvent::getName()': Controller.cpp:(.text._ZN9TAppEvent7getNameEv[_ZN9TAppEvent7getNameEv]+0xb8): undefined reference to Piduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/Controller.o: in function_GLOBALsub_I_Controller.cpp': Controller.cpp:(.text.startup+0x50): undefined reference to IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/base_app.o: in functionBaseApp::setIntPropertyValue(Piduino::String const&, int)': base_app.cpp:(.text+0x24c): undefined reference to Print::print(__FlashStringHelper const*)' /usr/bin/ld: base_app.cpp:(.text+0x268): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: base_app.cpp:(.text+0x2a8): undefined reference to Print::print(__FlashStringHelper const*)' /usr/bin/ld: base_app.cpp:(.text+0x2c4): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/base_app.o: in function `BaseApp::setIntPropertyValue(FlashStringHelper const, int)': base_app.cpp:(.text+0x418): undefined reference to `Print::print(__FlashStringHelper const)' /usr/bin/ld: base_app.cpp:(.text+0x434): undefined reference to Print::println(Piduino::String const&)' /usr/bin/ld: base_app.cpp:(.text+0x474): undefined reference toPrint::print(FlashStringHelper const*)' /usr/bin/ld: base_app.cpp:(.text+0x490): undefined reference to Print::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/base_app.o: in functionBaseApp::setFloatPropertyValue(Piduino::String const&, float)': base_app.cpp:(.text+0x5f0): undefined reference to `Print::print(FlashStringHelper const)' /usr/bin/ld: base_app.cpp:(.text+0x60c): undefined reference to Print::println(Piduino::String const&)' /usr/bin/ld: base_app.cpp:(.text+0x64c): undefined reference toPrint::print(__FlashStringHelper const)' /usr/bin/ld: base_app.cpp:(.text+0x668): undefined reference to Print::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/base_app.o: in functionBaseApp::setFloatPropertyValue(FlashStringHelper const, float)': base_app.cpp:(.text+0x7c8): undefined reference to `Print::print(__FlashStringHelper const)' /usr/bin/ld: base_app.cpp:(.text+0x7e4): undefined reference to Print::println(Piduino::String const&)' /usr/bin/ld: base_app.cpp:(.text+0x824): undefined reference toPrint::print(FlashStringHelper const*)' /usr/bin/ld: base_app.cpp:(.text+0x840): undefined reference to Print::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/base_app.o: in function_GLOBALsub_I_base_app.cpp': base_app.cpp:(.text.startup+0x50): undefined reference to IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/bathroom_fan.o: in functionBathroomFan::applyStatus(unsigned char)': bathroom_fan.cpp:(.text+0x224): undefined reference to `Print::print(FlashStringHelper const)' /usr/bin/ld: bathroom_fan.cpp:(.text+0x240): undefined reference to Print::println(Piduino::String const&)' /usr/bin/ld: bathroom_fan.cpp:(.text+0x280): undefined reference toPrint::print(__FlashStringHelper const)' /usr/bin/ld: bathroom_fan.cpp:(.text+0x29c): undefined reference to Print::println(Piduino::String const&)' /usr/bin/ld: bathroom_fan.cpp:(.text+0x2dc): undefined reference toPrint::print(FlashStringHelper const*)' /usr/bin/ld: bathroom_fan.cpp:(.text+0x2f8): undefined reference to Print::println(Piduino::String const&)' /usr/bin/ld: bathroom_fan.cpp:(.text+0x338): undefined reference toPrint::print(FlashStringHelper const)' /usr/bin/ld: bathroom_fan.cpp:(.text+0x354): undefined reference to Print::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/bathroom_fan.o: in function_GLOBAL__sub_I_bathroom_fan.cpp': bathroom_fan.cpp:(.text.startup+0x50): undefined reference to IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/counter_app.o: in functionCounterApp::start()': counter_app.cpp:(.text+0x10c): undefined reference to `Print::print(__FlashStringHelper const)' /usr/bin/ld: counter_app.cpp:(.text+0x128): undefined reference to Print::println(Piduino::String const&)' /usr/bin/ld: counter_app.cpp:(.text+0x168): undefined reference toPrint::print(FlashStringHelper const)' /usr/bin/ld: counter_app.cpp:(.text+0x184): undefined reference to Print::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/counter_app.o: in functionCounterApp::onEvent(BaseApp, TAppEvent*)': counter_app.cpp:(.text+0x464): undefined reference to `Print::print(FlashStringHelper const)' /usr/bin/ld: counter_app.cpp:(.text+0x480): undefined reference to Print::println(Piduino::String const&)' /usr/bin/ld: counter_app.cpp:(.text+0x4c0): undefined reference toPrint::print(__FlashStringHelper const)' /usr/bin/ld: counter_app.cpp:(.text+0x4dc): undefined reference to Print::println(Piduino::String const&)' /usr/bin/ld: counter_app.cpp:(.text+0x51c): undefined reference toPrint::print(FlashStringHelper const*)' /usr/bin/ld: counter_app.cpp:(.text+0x538): undefined reference to Print::println(Piduino::String const&)' /usr/bin/ld: counter_app.cpp:(.text+0x578): undefined reference toPrint::print(FlashStringHelper const)' /usr/bin/ld: counter_app.cpp:(.text+0x594): undefined reference to Print::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/counter_app.o: in function_GLOBALsub_I_counter_app.cpp': counter_app.cpp:(.text.startup+0x50): undefined reference to IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/event_collector2_app.o: in function_GLOBALsub_I_event_collector2_app.cpp': event_collector2_app.cpp:(.text.startup+0x50): undefined reference to IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/event_trigger_app.o: in function_GLOBAL__sub_I_event_trigger_app.cpp': event_trigger_app.cpp:(.text.startup+0x50): undefined reference to IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/simple_light_app.o: in functionSimpleLightApp::init(TAppSettings)': simple_light_app.cpp:(.text+0x558): undefined reference to Print::print(__FlashStringHelper const*)' /usr/bin/ld: simple_light_app.cpp:(.text+0x574): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: simple_light_app.cpp:(.text+0x638): undefined reference to Print::print(__FlashStringHelper const*)' /usr/bin/ld: simple_light_app.cpp:(.text+0x654): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/simple_light_app.o: in function TIntProperty::setValue(BaseApp*, int)': simple_light_app.cpp:(.text._ZN12TIntProperty8setValueEP7BaseAppi[_ZN12TIntProperty8setValueEP7BaseAppi]+0xf4): undefined reference toPrint::print(FlashStringHelper const*)' /usr/bin/ld: simple_light_app.cpp:(.text._ZN12TIntProperty8setValueEP7BaseAppi[_ZN12TIntProperty8setValueEP7BaseAppi]+0x110): undefined reference to Print::println(Piduino::String const&)' /usr/bin/ld: simple_light_app.cpp:(.text._ZN12TIntProperty8setValueEP7BaseAppi[_ZN12TIntProperty8setValueEP7BaseAppi]+0x150): undefined reference toPrint::print(FlashStringHelper const)' /usr/bin/ld: simple_light_app.cpp:(.text._ZN12TIntProperty8setValueEP7BaseAppi[_ZN12TIntProperty8setValueEP7BaseAppi]+0x16c): undefined reference to Print::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/simple_light_app.o: in function_GLOBAL__sub_I_simple_light_app.cpp': simple_light_app.cpp:(.text.startup+0x50): undefined reference to IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/timer_app.o: in function_GLOBALsub_I_timer_app.cpp': timer_app.cpp:(.text.startup+0x50): undefined reference to IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/udp_interface_app.o: in function_GLOBALsub_I_udp_interface_app.cpp': udp_interface_app.cpp:(.text.startup+0x50): undefined reference to IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/udp_interface_app.o:(.data.rel.ro+0x18): undefined reference totypeinfo for Print' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/udp_interface_app.o:(.data.rel.ro+0x7c): undefined reference to Print::writeln()' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/udp_interface_app.o:(.data.rel.ro+0x84): undefined reference toPrint::write(unsigned char const, unsigned int)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/udp_interface_app.o:(.data.rel.ro+0x8c): undefined reference to Print::println()' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/BtnLibrary.o: in function_GLOBALsub_I_BtnLibrary.cpp': BtnLibrary.cpp:(.text.startup+0x50): undefined reference to IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/UdpLinux.o: in functionUdpLinux::beginPacket(char const, unsigned short)': UdpLinux.cpp:(.text+0x100): undefined reference to IPAddress::IPAddress()' /usr/bin/ld: UdpLinux.cpp:(.text+0x10c): undefined reference toIPAddress::fromString(char const)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/UdpLinux.o: in function UdpLinux::remoteIP()': UdpLinux.cpp:(.text+0x2dc): undefined reference toIPAddress::IPAddress()' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/UdpLinux.o: in function `_GLOBALsub_I_UdpLinux.cpp': UdpLinux.cpp:(.text.startup+0x50): undefined reference to IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/commands.o: in functionBaseCommandApp::onReportPropertyTrigger()': commands.cpp:(.text+0xb6c): undefined reference to Piduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: commands.cpp:(.text+0xccc): undefined reference toPiduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: commands.cpp:(.text+0xd3c): undefined reference to Piduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/commands.o: in functionBaseCommandApp::writeEvent(TAppEvent)': commands.cpp:(.text+0xedc): undefined reference to Piduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/commands.o: in functionBaseCommandApp::executeCommand(char const, int)': commands.cpp:(.text+0x1108): undefined reference to Piduino::String::toInt() const' /usr/bin/ld: commands.cpp:(.text+0x17a0): undefined reference toPiduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: commands.cpp:(.text+0x1984): undefined reference to Piduino::String::toInt() const' /usr/bin/ld: commands.cpp:(.text+0x1ac4): undefined reference toPiduino::String::toInt() const' /usr/bin/ld: commands.cpp:(.text+0x1c00): undefined reference to Piduino::String::toInt() const' /usr/bin/ld: commands.cpp:(.text+0x1c80): undefined reference toPiduino::String::toInt() const' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/commands.o: in function BaseCommandApp::sendMapping()': commands.cpp:(.text+0x2104): undefined reference toPiduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: commands.cpp:(.text+0x2228): undefined reference to Piduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: commands.cpp:(.text+0x23c0): undefined reference toPiduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: commands.cpp:(.text+0x2430): undefined reference to Piduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/commands.o: in function_GLOBALsub_I_commands.cpp': commands.cpp:(.text.startup+0x50): undefined reference to IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/fast_adc.o: in function_GLOBAL__sub_I_fast_adc.cpp': fast_adc.cpp:(.text.startup+0x50): undefined reference to IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/fast_gpio.o: in function_GLOBALsub_I_fast_gpio.cpp': fast_gpio.cpp:(.text.startup+0x50): undefined reference to IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/functions.o: in function_GLOBAL__sub_I_functions.cpp': functions.cpp:(.text.startup+0x50): undefined reference to IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/modbus_crc16.o: in function_GLOBAL__sub_I_modbus_crc16.cpp': modbus_crc16.cpp:(.text.startup+0x50): undefined reference to `IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' collect2: error: ld returned 1 exit status *** [.pio/build/raspberrypi_3b/program] Error 1
setup': sketch.cpp:(.text+0x1a0): undefined reference to
Print::print(__FlashStringHelper const*)' /usr/bin/ld: sketch.cpp:(.text+0x784): undefined reference to
Print::println(Piduino::String const&)' /usr/bin/ld: sketch.cpp:(.text+0x7cc): undefined reference to
Piduino::FileDevice::~FileDevice()' /usr/bin/ld: sketch.cpp:(.text+0x8fc): undefined reference to
TIntProperty::toString()': sketch.cpp:(.text._ZN12TIntProperty8toStringEv[_ZN12TIntProperty8toStringEv]+0x10): undefined reference to
UdpInterfaceAppSettings_6436778422698_t::remoteAddress()': sketch.cpp:(.text._ZN39UdpInterfaceAppSettings_6436778422698_t13remoteAddressEv[_ZN39UdpInterfaceAppSettings_6436778422698_t13remoteAddressEv]+0x20): undefined reference to
TIntProperty::setValueFromString(BaseApp*, Piduino::String)': sketch.cpp:(.text._ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE[_ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE]+0x30): undefined reference to
Print::print(__FlashStringHelper const*)' /usr/bin/ld: sketch.cpp:(.text._ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE[_ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE]+0x138): undefined reference to
Print::print(__FlashStringHelper const*)' /usr/bin/ld: sketch.cpp:(.text._ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE[_ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE]+0x194): undefined reference to
_GLOBAL__sub_I_sketch.cpp': sketch.cpp:(.text.startup+0x48): undefined reference to
IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/sketch.o: in function
HardwareSerial::setupAvailablePorts()' /usr/bin/ld: sketch.cpp:(.text.startup+0x870): undefined reference to
Piduino::SysLog::cerrToSyslog()' /usr/bin/ld: sketch.cpp:(.text.startup+0x878): undefined reference to
PiConsole::~PiConsole()': sketch.cpp:(.text._ZN9PiConsoleD2Ev[_ZN9PiConsoleD5Ev]+0x20): undefined reference to
Piduino::FileDevice::~FileDevice()' /usr/bin/ld: sketch.cpp:(.text._ZN9PiConsoleD2Ev[_ZN9PiConsoleD5Ev]+0x38): undefined reference to
PiConsole::~PiConsole()': sketch.cpp:(.text._ZN9PiConsoleD0Ev[_ZN9PiConsoleD5Ev]+0x20): undefined reference to
Piduino::FileDevice::~FileDevice()' /usr/bin/ld: sketch.cpp:(.text._ZN9PiConsoleD0Ev[_ZN9PiConsoleD5Ev]+0x44): undefined reference to
Controller::setup()': Controller.cpp:(.text+0x70): undefined reference to
Piduino::String::toString(long, unsigned char)' /usr/bin/ld: Controller.cpp:(.text+0x90): undefined reference to
Piduino::String::toString(long, unsigned char)' /usr/bin/ld: Controller.cpp:(.text+0xdc): undefined reference to
Print::print(__FlashStringHelper const*)' /usr/bin/ld: Controller.cpp:(.text+0x194): undefined reference to
Print::println(int, int)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/Controller.o: in function
Print::print(__FlashStringHelper const*)' /usr/bin/ld: Controller.cpp:(.text+0x338): undefined reference to
Controller::debugSerialPrintProperties()': Controller.cpp:(.text+0x8e4): undefined reference to
Print::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/Controller.o: in function
Piduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/Controller.o: in function
IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/base_app.o: in function
Print::print(__FlashStringHelper const*)' /usr/bin/ld: base_app.cpp:(.text+0x268): undefined reference to
Print::print(__FlashStringHelper const*)' /usr/bin/ld: base_app.cpp:(.text+0x2c4): undefined reference to
Print::println(Piduino::String const&)' /usr/bin/ld: base_app.cpp:(.text+0x474): undefined reference to
Print::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/base_app.o: in function
Print::println(Piduino::String const&)' /usr/bin/ld: base_app.cpp:(.text+0x64c): undefined reference to
Print::println(Piduino::String const&)' /usr/bin/ld: base_app.cpp:(.text+0x824): undefined reference to
IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/bathroom_fan.o: in function
Print::println(Piduino::String const&)' /usr/bin/ld: bathroom_fan.cpp:(.text+0x280): undefined reference to
Print::println(Piduino::String const&)' /usr/bin/ld: bathroom_fan.cpp:(.text+0x2dc): undefined reference to
Print::println(Piduino::String const&)' /usr/bin/ld: bathroom_fan.cpp:(.text+0x338): undefined reference to
Print::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/bathroom_fan.o: in function
IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/counter_app.o: in function
Print::println(Piduino::String const&)' /usr/bin/ld: counter_app.cpp:(.text+0x168): undefined reference to
Print::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/counter_app.o: in function
Print::println(Piduino::String const&)' /usr/bin/ld: counter_app.cpp:(.text+0x4c0): undefined reference to
Print::println(Piduino::String const&)' /usr/bin/ld: counter_app.cpp:(.text+0x51c): undefined reference to
Print::println(Piduino::String const&)' /usr/bin/ld: counter_app.cpp:(.text+0x578): undefined reference to
IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/event_collector2_app.o: in function
IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/event_trigger_app.o: in function
IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/simple_light_app.o: in function
Print::print(__FlashStringHelper const*)' /usr/bin/ld: simple_light_app.cpp:(.text+0x574): undefined reference to
Print::print(__FlashStringHelper const*)' /usr/bin/ld: simple_light_app.cpp:(.text+0x654): undefined reference to
TIntProperty::setValue(BaseApp*, int)': simple_light_app.cpp:(.text._ZN12TIntProperty8setValueEP7BaseAppi[_ZN12TIntProperty8setValueEP7BaseAppi]+0xf4): undefined reference to
Print::println(Piduino::String const&)' /usr/bin/ld: simple_light_app.cpp:(.text._ZN12TIntProperty8setValueEP7BaseAppi[_ZN12TIntProperty8setValueEP7BaseAppi]+0x150): undefined reference to
Print::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/simple_light_app.o: in function
IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/timer_app.o: in function
IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/udp_interface_app.o: in function
IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/udp_interface_app.o:(.data.rel.ro+0x18): undefined reference to
Print::writeln()' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/udp_interface_app.o:(.data.rel.ro+0x84): undefined reference to
Print::println()' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/BtnLibrary.o: in function
IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/UdpLinux.o: in function
IPAddress::IPAddress()' /usr/bin/ld: UdpLinux.cpp:(.text+0x10c): undefined reference to
UdpLinux::remoteIP()': UdpLinux.cpp:(.text+0x2dc): undefined reference to
IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/commands.o: in function
Piduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: commands.cpp:(.text+0xccc): undefined reference to
Piduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/commands.o: in function
Piduino::String::toInt() const' /usr/bin/ld: commands.cpp:(.text+0x17a0): undefined reference to
Piduino::String::toInt() const' /usr/bin/ld: commands.cpp:(.text+0x1ac4): undefined reference to
Piduino::String::toInt() const' /usr/bin/ld: commands.cpp:(.text+0x1c80): undefined reference to
BaseCommandApp::sendMapping()': commands.cpp:(.text+0x2104): undefined reference to
Piduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: commands.cpp:(.text+0x23c0): undefined reference to
IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/fast_adc.o: in function
IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/fast_gpio.o: in function
IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/functions.o: in function
IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/modbus_crc16.o: in function
Any hint on how to fix this? Can the library be included into platformio registry? Will be easier to work with it.
Thank you, Flavio
Hello,
trying to fix an issue while compiling some code with platformio and piduino. Was working like 2 years ago but now I'm getting an error when linking the library (compiled from sources)
Here the platformio configuration:
[env:raspberrypi_3b] platform = linux_arm board = raspberrypi_3b framework = wiringpi lib_archive = yes build_flags =
-H
Here the error:
In file included from /usr/local/include/piduino/arduino/Arduino.h:289, from /usr/local/include/piduino/arduino/Piduino.h:116, from src/sketch.cpp:3: /usr/local/include/piduino/arduino/Console.h: In function ‘void setup()’: /usr/local/include/piduino/arduino/Console.h:24:7: warning: inlining failed in call to ‘virtual PiConsole::~PiConsole() noexcept’: call is unlikely and code size would grow [-Winline] 24 | class PiConsole : public Terminal { | ^
~~~~ src/sketch.cpp:170:15: note: called from here 170 | PiConsole console; | ^~~ Linking .pio/build/raspberrypi_3b/program /usr/bin/ld: .pio/build/raspberrypi_3b/src/sketch.o: in functionsetup': sketch.cpp:(.text+0x1a0): undefined reference to
PiConsole::PiConsole()' /usr/bin/ld: sketch.cpp:(.text+0x76c): undefined reference toPrint::print(__FlashStringHelper const*)' /usr/bin/ld: sketch.cpp:(.text+0x784): undefined reference to
Piduino::String::toString(long, unsigned char)' /usr/bin/ld: sketch.cpp:(.text+0x790): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: sketch.cpp:(.text+0x7cc): undefined reference to
Piduino::TerminalNotifier::~TerminalNotifier()' /usr/bin/ld: sketch.cpp:(.text+0x7d4): undefined reference toPiduino::FileDevice::~FileDevice()' /usr/bin/ld: sketch.cpp:(.text+0x8fc): undefined reference to
vtable for PiConsole' /usr/bin/ld: .pio/build/raspberrypi_3b/src/sketch.o: in functionTIntProperty::toString()': sketch.cpp:(.text._ZN12TIntProperty8toStringEv[_ZN12TIntProperty8toStringEv]+0x10): undefined reference to
Piduino::String::toString(long, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/sketch.o: in functionUdpInterfaceAppSettings_6436778422698_t::remoteAddress()': sketch.cpp:(.text._ZN39UdpInterfaceAppSettings_6436778422698_t13remoteAddressEv[_ZN39UdpInterfaceAppSettings_6436778422698_t13remoteAddressEv]+0x20): undefined reference to
IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/sketch.o: in functionTIntProperty::setValueFromString(BaseApp*, Piduino::String)': sketch.cpp:(.text._ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE[_ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE]+0x30): undefined reference to
Piduino::String::toInt() const' /usr/bin/ld: sketch.cpp:(.text._ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE[_ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE]+0x11c): undefined reference toPrint::print(__FlashStringHelper const*)' /usr/bin/ld: sketch.cpp:(.text._ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE[_ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE]+0x138): undefined reference to
Print::println(Piduino::String const&)' /usr/bin/ld: sketch.cpp:(.text._ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE[_ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE]+0x178): undefined reference toPrint::print(__FlashStringHelper const*)' /usr/bin/ld: sketch.cpp:(.text._ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE[_ZN12TIntProperty18setValueFromStringEP7BaseAppN7Piduino6StringE]+0x194): undefined reference to
Print::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/sketch.o: in function_GLOBAL__sub_I_sketch.cpp': sketch.cpp:(.text.startup+0x48): undefined reference to
PiConsole::PiConsole()' /usr/bin/ld: sketch.cpp:(.text.startup+0x12c): undefined reference toIPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/sketch.o: in function
main': sketch.cpp:(.text.startup+0x824): undefined reference toHardwareSerial::setupAvailablePorts()' /usr/bin/ld: sketch.cpp:(.text.startup+0x870): undefined reference to
createPidFile' /usr/bin/ld: sketch.cpp:(.text.startup+0x874): undefined reference toPiduino::SysLog::cerrToSyslog()' /usr/bin/ld: sketch.cpp:(.text.startup+0x878): undefined reference to
Piduino::SysLog::coutToSyslog()' /usr/bin/ld: .pio/build/raspberrypi_3b/src/sketch.o: in functionPiConsole::~PiConsole()': sketch.cpp:(.text._ZN9PiConsoleD2Ev[_ZN9PiConsoleD5Ev]+0x20): undefined reference to
Piduino::TerminalNotifier::~TerminalNotifier()' /usr/bin/ld: sketch.cpp:(.text._ZN9PiConsoleD2Ev[_ZN9PiConsoleD5Ev]+0x28): undefined reference toPiduino::FileDevice::~FileDevice()' /usr/bin/ld: sketch.cpp:(.text._ZN9PiConsoleD2Ev[_ZN9PiConsoleD5Ev]+0x38): undefined reference to
vtable for PiConsole' /usr/bin/ld: .pio/build/raspberrypi_3b/src/sketch.o: in functionPiConsole::~PiConsole()': sketch.cpp:(.text._ZN9PiConsoleD0Ev[_ZN9PiConsoleD5Ev]+0x20): undefined reference to
Piduino::TerminalNotifier::~TerminalNotifier()' /usr/bin/ld: sketch.cpp:(.text._ZN9PiConsoleD0Ev[_ZN9PiConsoleD5Ev]+0x28): undefined reference toPiduino::FileDevice::~FileDevice()' /usr/bin/ld: sketch.cpp:(.text._ZN9PiConsoleD0Ev[_ZN9PiConsoleD5Ev]+0x44): undefined reference to
vtable for PiConsole' /usr/bin/ld: .pio/build/raspberrypi_3b/src/Controller.o: in functionController::setup()': Controller.cpp:(.text+0x70): undefined reference to
Print::print(FlashStringHelper const*)' /usr/bin/ld: Controller.cpp:(.text+0x84): undefined reference toPiduino::String::toString(long, unsigned char)' /usr/bin/ld: Controller.cpp:(.text+0x90): undefined reference to
Print::println(Piduino::String const&)' /usr/bin/ld: Controller.cpp:(.text+0xbc): undefined reference to `Print::print(FlashStringHelper const)' /usr/bin/ld: Controller.cpp:(.text+0xd0): undefined reference toPiduino::String::toString(long, unsigned char)' /usr/bin/ld: Controller.cpp:(.text+0xdc): undefined reference to
Print::println(Piduino::String const&)' /usr/bin/ld: Controller.cpp:(.text+0x160): undefined reference to `Print::println(__FlashStringHelper const)' /usr/bin/ld: Controller.cpp:(.text+0x178): undefined reference toPrint::print(__FlashStringHelper const*)' /usr/bin/ld: Controller.cpp:(.text+0x194): undefined reference to
Print::println(FlashStringHelper const*)' /usr/bin/ld: Controller.cpp:(.text+0x1b0): undefined reference to `Print::println(FlashStringHelper const)' /usr/bin/ld: Controller.cpp:(.text+0x1c0): undefined reference to `Print::print(__FlashStringHelper const)' /usr/bin/ld: Controller.cpp:(.text+0x1e0): undefined reference toPrint::println(int, int)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/Controller.o: in function
Controller::sendEvent(BaseApp, TAppEvent)': Controller.cpp:(.text+0x31c): undefined reference toPrint::print(__FlashStringHelper const*)' /usr/bin/ld: Controller.cpp:(.text+0x338): undefined reference to
Print::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/Controller.o: in functionController::debugSerialPrintProperties()': Controller.cpp:(.text+0x8e4): undefined reference to
Print::print(FlashStringHelper const*)' /usr/bin/ld: Controller.cpp:(.text+0x8f0): undefined reference to `Print::print(FlashStringHelper const)' /usr/bin/ld: Controller.cpp:(.text+0x8fc): undefined reference to `Print::print(__FlashStringHelper const)' /usr/bin/ld: Controller.cpp:(.text+0x920): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/Controller.o: in function
TAppEvent::getName()': Controller.cpp:(.text._ZN9TAppEvent7getNameEv[_ZN9TAppEvent7getNameEv]+0xb8): undefined reference toPiduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/Controller.o: in function
_GLOBALsub_I_Controller.cpp': Controller.cpp:(.text.startup+0x50): undefined reference toIPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/base_app.o: in function
BaseApp::setIntPropertyValue(Piduino::String const&, int)': base_app.cpp:(.text+0x24c): undefined reference toPrint::print(__FlashStringHelper const*)' /usr/bin/ld: base_app.cpp:(.text+0x268): undefined reference to
Print::println(Piduino::String const&)' /usr/bin/ld: base_app.cpp:(.text+0x2a8): undefined reference toPrint::print(__FlashStringHelper const*)' /usr/bin/ld: base_app.cpp:(.text+0x2c4): undefined reference to
Print::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/base_app.o: in function `BaseApp::setIntPropertyValue(FlashStringHelper const, int)': base_app.cpp:(.text+0x418): undefined reference to `Print::print(__FlashStringHelper const)' /usr/bin/ld: base_app.cpp:(.text+0x434): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: base_app.cpp:(.text+0x474): undefined reference to
Print::print(FlashStringHelper const*)' /usr/bin/ld: base_app.cpp:(.text+0x490): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/base_app.o: in function
BaseApp::setFloatPropertyValue(Piduino::String const&, float)': base_app.cpp:(.text+0x5f0): undefined reference to `Print::print(FlashStringHelper const)' /usr/bin/ld: base_app.cpp:(.text+0x60c): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: base_app.cpp:(.text+0x64c): undefined reference to
Print::print(__FlashStringHelper const)' /usr/bin/ld: base_app.cpp:(.text+0x668): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/base_app.o: in function
BaseApp::setFloatPropertyValue(FlashStringHelper const, float)': base_app.cpp:(.text+0x7c8): undefined reference to `Print::print(__FlashStringHelper const)' /usr/bin/ld: base_app.cpp:(.text+0x7e4): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: base_app.cpp:(.text+0x824): undefined reference to
Print::print(FlashStringHelper const*)' /usr/bin/ld: base_app.cpp:(.text+0x840): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/base_app.o: in function
_GLOBALsub_I_base_app.cpp': base_app.cpp:(.text.startup+0x50): undefined reference toIPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/bathroom_fan.o: in function
BathroomFan::applyStatus(unsigned char)': bathroom_fan.cpp:(.text+0x224): undefined reference to `Print::print(FlashStringHelper const)' /usr/bin/ld: bathroom_fan.cpp:(.text+0x240): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: bathroom_fan.cpp:(.text+0x280): undefined reference to
Print::print(__FlashStringHelper const)' /usr/bin/ld: bathroom_fan.cpp:(.text+0x29c): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: bathroom_fan.cpp:(.text+0x2dc): undefined reference to
Print::print(FlashStringHelper const*)' /usr/bin/ld: bathroom_fan.cpp:(.text+0x2f8): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: bathroom_fan.cpp:(.text+0x338): undefined reference to
Print::print(FlashStringHelper const)' /usr/bin/ld: bathroom_fan.cpp:(.text+0x354): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/bathroom_fan.o: in function
_GLOBAL__sub_I_bathroom_fan.cpp': bathroom_fan.cpp:(.text.startup+0x50): undefined reference toIPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/counter_app.o: in function
CounterApp::start()': counter_app.cpp:(.text+0x10c): undefined reference to `Print::print(__FlashStringHelper const)' /usr/bin/ld: counter_app.cpp:(.text+0x128): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: counter_app.cpp:(.text+0x168): undefined reference to
Print::print(FlashStringHelper const)' /usr/bin/ld: counter_app.cpp:(.text+0x184): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/counter_app.o: in function
CounterApp::onEvent(BaseApp, TAppEvent*)': counter_app.cpp:(.text+0x464): undefined reference to `Print::print(FlashStringHelper const)' /usr/bin/ld: counter_app.cpp:(.text+0x480): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: counter_app.cpp:(.text+0x4c0): undefined reference to
Print::print(__FlashStringHelper const)' /usr/bin/ld: counter_app.cpp:(.text+0x4dc): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: counter_app.cpp:(.text+0x51c): undefined reference to
Print::print(FlashStringHelper const*)' /usr/bin/ld: counter_app.cpp:(.text+0x538): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: counter_app.cpp:(.text+0x578): undefined reference to
Print::print(FlashStringHelper const)' /usr/bin/ld: counter_app.cpp:(.text+0x594): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/counter_app.o: in function
_GLOBALsub_I_counter_app.cpp': counter_app.cpp:(.text.startup+0x50): undefined reference toIPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/event_collector2_app.o: in function
_GLOBALsub_I_event_collector2_app.cpp': event_collector2_app.cpp:(.text.startup+0x50): undefined reference toIPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/event_trigger_app.o: in function
_GLOBAL__sub_I_event_trigger_app.cpp': event_trigger_app.cpp:(.text.startup+0x50): undefined reference toIPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/simple_light_app.o: in function
SimpleLightApp::init(TAppSettings)': simple_light_app.cpp:(.text+0x558): undefined reference toPrint::print(__FlashStringHelper const*)' /usr/bin/ld: simple_light_app.cpp:(.text+0x574): undefined reference to
Print::println(Piduino::String const&)' /usr/bin/ld: simple_light_app.cpp:(.text+0x638): undefined reference toPrint::print(__FlashStringHelper const*)' /usr/bin/ld: simple_light_app.cpp:(.text+0x654): undefined reference to
Print::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/simple_light_app.o: in functionTIntProperty::setValue(BaseApp*, int)': simple_light_app.cpp:(.text._ZN12TIntProperty8setValueEP7BaseAppi[_ZN12TIntProperty8setValueEP7BaseAppi]+0xf4): undefined reference to
Print::print(FlashStringHelper const*)' /usr/bin/ld: simple_light_app.cpp:(.text._ZN12TIntProperty8setValueEP7BaseAppi[_ZN12TIntProperty8setValueEP7BaseAppi]+0x110): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: simple_light_app.cpp:(.text._ZN12TIntProperty8setValueEP7BaseAppi[_ZN12TIntProperty8setValueEP7BaseAppi]+0x150): undefined reference to
Print::print(FlashStringHelper const)' /usr/bin/ld: simple_light_app.cpp:(.text._ZN12TIntProperty8setValueEP7BaseAppi[_ZN12TIntProperty8setValueEP7BaseAppi]+0x16c): undefined reference toPrint::println(Piduino::String const&)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/simple_light_app.o: in function
_GLOBAL__sub_I_simple_light_app.cpp': simple_light_app.cpp:(.text.startup+0x50): undefined reference toIPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/timer_app.o: in function
_GLOBALsub_I_timer_app.cpp': timer_app.cpp:(.text.startup+0x50): undefined reference toIPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/udp_interface_app.o: in function
_GLOBALsub_I_udp_interface_app.cpp': udp_interface_app.cpp:(.text.startup+0x50): undefined reference toIPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/udp_interface_app.o:(.data.rel.ro+0x18): undefined reference to
typeinfo for Print' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/udp_interface_app.o:(.data.rel.ro+0x7c): undefined reference toPrint::writeln()' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/udp_interface_app.o:(.data.rel.ro+0x84): undefined reference to
Print::write(unsigned char const, unsigned int)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/app/udp_interface_app.o:(.data.rel.ro+0x8c): undefined reference toPrint::println()' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/BtnLibrary.o: in function
_GLOBALsub_I_BtnLibrary.cpp': BtnLibrary.cpp:(.text.startup+0x50): undefined reference toIPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/UdpLinux.o: in function
UdpLinux::beginPacket(char const, unsigned short)': UdpLinux.cpp:(.text+0x100): undefined reference toIPAddress::IPAddress()' /usr/bin/ld: UdpLinux.cpp:(.text+0x10c): undefined reference to
IPAddress::fromString(char const)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/UdpLinux.o: in functionUdpLinux::remoteIP()': UdpLinux.cpp:(.text+0x2dc): undefined reference to
IPAddress::IPAddress()' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/UdpLinux.o: in function `_GLOBALsub_I_UdpLinux.cpp': UdpLinux.cpp:(.text.startup+0x50): undefined reference toIPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/commands.o: in function
BaseCommandApp::onReportPropertyTrigger()': commands.cpp:(.text+0xb6c): undefined reference toPiduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: commands.cpp:(.text+0xccc): undefined reference to
Piduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: commands.cpp:(.text+0xd3c): undefined reference toPiduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/commands.o: in function
BaseCommandApp::writeEvent(TAppEvent)': commands.cpp:(.text+0xedc): undefined reference toPiduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/commands.o: in function
BaseCommandApp::executeCommand(char const, int)': commands.cpp:(.text+0x1108): undefined reference toPiduino::String::toInt() const' /usr/bin/ld: commands.cpp:(.text+0x17a0): undefined reference to
Piduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: commands.cpp:(.text+0x1984): undefined reference toPiduino::String::toInt() const' /usr/bin/ld: commands.cpp:(.text+0x1ac4): undefined reference to
Piduino::String::toInt() const' /usr/bin/ld: commands.cpp:(.text+0x1c00): undefined reference toPiduino::String::toInt() const' /usr/bin/ld: commands.cpp:(.text+0x1c80): undefined reference to
Piduino::String::toInt() const' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/commands.o: in functionBaseCommandApp::sendMapping()': commands.cpp:(.text+0x2104): undefined reference to
Piduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: commands.cpp:(.text+0x2228): undefined reference toPiduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: commands.cpp:(.text+0x23c0): undefined reference to
Piduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: commands.cpp:(.text+0x2430): undefined reference toPiduino::String::toString(unsigned long, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/commands.o: in function
_GLOBALsub_I_commands.cpp': commands.cpp:(.text.startup+0x50): undefined reference toIPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/fast_adc.o: in function
_GLOBAL__sub_I_fast_adc.cpp': fast_adc.cpp:(.text.startup+0x50): undefined reference toIPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/fast_gpio.o: in function
_GLOBALsub_I_fast_gpio.cpp': fast_gpio.cpp:(.text.startup+0x50): undefined reference toIPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/functions.o: in function
_GLOBAL__sub_I_functions.cpp': functions.cpp:(.text.startup+0x50): undefined reference toIPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' /usr/bin/ld: .pio/build/raspberrypi_3b/src/libs/modbus_crc16.o: in function
_GLOBAL__sub_I_modbus_crc16.cpp': modbus_crc16.cpp:(.text.startup+0x50): undefined reference to `IPAddress::IPAddress(unsigned char, unsigned char, unsigned char, unsigned char)' collect2: error: ld returned 1 exit status *** [.pio/build/raspberrypi_3b/program] Error 1Any hint on how to fix this? Can the library be included into platformio registry? Will be easier to work with it.
Thank you, Flavio