pulsartronic / USBRFMApp

smartphone LoRa device connection - Android - USB - Arduino - LoRa
GNU General Public License v3.0
35 stars 10 forks source link

Error in compiling code #2

Open SieglV opened 2 years ago

SieglV commented 2 years ago

Hi, I tried making your project and when I run your code I got this error: (no clue what to do) I also had little trouble loading libraries but I fixed that. Other than that I havent messed with original source code. Any ideas?

Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "LilyPad Arduino USB"

libraries\SerialPort\AVRSerialPort.cpp.o (symbol from plugin): In function `SerialPort_CONFIG(int)':

(.text+0x0): multiple definition of `SerialPort_CONFIG(int)'

sketch\AVRSerialPort.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\SerialPort\AVRSerialPort.cpp.o (symbol from plugin): In function `SerialPort_CONFIG(int)':

(.text+0x0): multiple definition of `SerialPort::applySettings()'

sketch\AVRSerialPort.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\SerialPort\Channel.cpp.o (symbol from plugin): In function `SerialPort::Channel::~Channel()':

(.text+0x0): multiple definition of `SerialPort::Channel::~Channel()'

sketch\Channel.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\SerialPort\Channel.cpp.o (symbol from plugin): In function `SerialPort::Channel::~Channel()':

(.text+0x0): multiple definition of `SerialPort::Channel::~Channel()'

sketch\Channel.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\SerialPort\Channel.cpp.o (symbol from plugin): In function `SerialPort::Channel::~Channel()':

(.text+0x0): multiple definition of `SerialPort::Channel::~Channel()'

sketch\Channel.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\SerialPort\Channel.cpp.o (symbol from plugin): In function `SerialPort::Channel::~Channel()':

(.text+0x0): multiple definition of `SerialPort::Channel::send(CDS::DataBuffer*)'

sketch\Channel.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\SerialPort\Channel.cpp.o (symbol from plugin): In function `SerialPort::Channel::~Channel()':

(.text+0x0): multiple definition of `SerialPort::Channel::Channel(SerialPort*)'

sketch\Channel.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\SerialPort\Channel.cpp.o (symbol from plugin): In function `SerialPort::Channel::~Channel()':

(.text+0x0): multiple definition of `SerialPort::Channel::Channel(SerialPort*)'

sketch\Channel.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\SerialPort\Channel.cpp.o (symbol from plugin): In function `SerialPort::Channel::~Channel()':

(.text+0x0): multiple definition of `SerialPort::Channel::loop()'

sketch\Channel.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\SerialPort\SerialPort.cpp.o (symbol from plugin): In function `SerialPort::write(unsigned char)':

(.text+0x0): multiple definition of `SerialPort::write(unsigned char)'

sketch\SerialPort.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\SerialPort\SerialPort.cpp.o (symbol from plugin): In function `SerialPort::write(unsigned char)':

(.text+0x0): multiple definition of `non-virtual thunk to SerialPort::write(unsigned char)'

sketch\SerialPort.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\SerialPort\SerialPort.cpp.o (symbol from plugin): In function `SerialPort::write(unsigned char)':

(.text+0x0): multiple definition of `SerialPort::write(unsigned char const*, unsigned int)'

sketch\SerialPort.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\SerialPort\SerialPort.cpp.o (symbol from plugin): In function `SerialPort::write(unsigned char)':

(.text+0x0): multiple definition of `non-virtual thunk to SerialPort::write(unsigned char const*, unsigned int)'

sketch\SerialPort.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\SerialPort\SerialPort.cpp.o (symbol from plugin): In function `SerialPort::write(unsigned char)':

(.text+0x0): multiple definition of `SerialPort::SerialPort(Node, char const)'

sketch\SerialPort.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\SerialPort\SerialPort.cpp.o (symbol from plugin): In function `SerialPort::write(unsigned char)':

(.text+0x0): multiple definition of `SerialPort::SerialPort(Node, char const)'

sketch\SerialPort.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\SerialPort\SerialPort.cpp.o (symbol from plugin): In function `SerialPort::write(unsigned char)':

(.text+0x0): multiple definition of `SerialPort::setup()'

sketch\SerialPort.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\SerialPort\SerialPort.cpp.o (symbol from plugin): In function `SerialPort::write(unsigned char)':

(.text+0x0): multiple definition of `SerialPort::from(CDS::DataBuffer*)'

sketch\SerialPort.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\SerialPort\SerialPort.cpp.o (symbol from plugin): In function `SerialPort::write(unsigned char)':

(.text+0x0): multiple definition of `SerialPort::state(CDS::DataBuffer, CDS::DataBuffer)'

sketch\SerialPort.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\SerialPort\SerialPort.cpp.o (symbol from plugin): In function `SerialPort::write(unsigned char)':

(.text+0x0): multiple definition of `SerialPort::~SerialPort()'

sketch\SerialPort.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\SerialPort\SerialPort.cpp.o (symbol from plugin): In function `SerialPort::write(unsigned char)':

(.text+0x0): multiple definition of `SerialPort::~SerialPort()'

sketch\SerialPort.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\SerialPort\SerialPort.cpp.o (symbol from plugin): In function `SerialPort::write(unsigned char)':

(.text+0x0): multiple definition of `SerialPort::~SerialPort()'

sketch\SerialPort.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\SerialPort\SerialPort.cpp.o (symbol from plugin): In function `SerialPort::write(unsigned char)':

(.text+0x0): multiple definition of `SerialPort::loop()'

sketch\SerialPort.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\SerialPort\SerialPort.cpp.o (symbol from plugin): In function `SerialPort::write(unsigned char)':

(.text+0x0): multiple definition of `SerialPort::save(CDS::DataBuffer, CDS::DataBuffer)'

sketch\SerialPort.cpp.o (symbol from plugin):(.text+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

exit status 1

Error compiling for board LilyPad Arduino USB.

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

pulsartronic commented 2 years ago

no idea man, sorry :(