You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
I have been using this Modbus Serial Library for a while. For one of my project I need to use SoftwareSerial. But I am getting the following errors
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Modbus()'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Modbus()'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::searchRegister(unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::addReg(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Reg(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Reg(unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::addHreg(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Hreg(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Hreg(unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::addCoil(unsigned int, bool)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::addIsts(unsigned int, bool)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::addIreg(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Coil(unsigned int, bool)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Ists(unsigned int, bool)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Ireg(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Coil(unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Ists(unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Ireg(unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::exceptionResponse(unsigned char, unsigned char)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::readRegisters(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::writeSingleRegister(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::writeMultipleRegisters(unsigned char*, unsigned int, unsigned int, unsigned char)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::readCoils(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::readInputStatus(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::readInputRegisters(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::writeSingleCoil(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::writeMultipleCoils(unsigned char*, unsigned int, unsigned int, unsigned char)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::receivePDU(unsigned char*)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "Modbus.h"
Used: C:\Users\pviha\OneDrive\Documents\Arduino\libraries\Modbus
Not used: C:\Users\pviha\OneDrive\Documents\Arduino\libraries\modbus-esp8266
exit status 1
Error compiling for board Arduino Nano.
Please guide
Thanks
The text was updated successfully, but these errors were encountered:
Hello
I have been using this Modbus Serial Library for a while. For one of my project I need to use SoftwareSerial. But I am getting the following errors
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::Modbus()'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::Modbus()'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::searchRegister(unsigned int)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::addReg(unsigned int, unsigned int)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::Reg(unsigned int, unsigned int)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::Reg(unsigned int)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::addHreg(unsigned int, unsigned int)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::Hreg(unsigned int, unsigned int)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::Hreg(unsigned int)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::addCoil(unsigned int, bool)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::addIsts(unsigned int, bool)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::addIreg(unsigned int, unsigned int)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::Coil(unsigned int, bool)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::Ists(unsigned int, bool)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::Ireg(unsigned int, unsigned int)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::Coil(unsigned int)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::Ists(unsigned int)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::Ireg(unsigned int)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::exceptionResponse(unsigned char, unsigned char)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::readRegisters(unsigned int, unsigned int)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::writeSingleRegister(unsigned int, unsigned int)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::writeMultipleRegisters(unsigned char*, unsigned int, unsigned int, unsigned char)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::readCoils(unsigned int, unsigned int)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::readInputStatus(unsigned int, unsigned int)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::readInputRegisters(unsigned int, unsigned int)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::writeSingleCoil(unsigned int, unsigned int)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::writeMultipleCoils(unsigned char*, unsigned int, unsigned int, unsigned char)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function
Modbus::Modbus()': (.text+0x0): multiple definition of
Modbus::receivePDU(unsigned char*)'sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "Modbus.h"
Used: C:\Users\pviha\OneDrive\Documents\Arduino\libraries\Modbus
Not used: C:\Users\pviha\OneDrive\Documents\Arduino\libraries\modbus-esp8266
exit status 1
Error compiling for board Arduino Nano.
Please guide
Thanks
The text was updated successfully, but these errors were encountered: