no matching function for call to 'Adafruit_FONA::Adafruit_FONA(SoftwareSerial*, int)'
Opened this issue · 10 comments
I am getting this error:
no matching function for call to 'Adafruit_FONA::Adafruit_FONA(SoftwareSerial*, int)'
Please help.
More details please
Im getting also error from RF24.
Seems to be a lot of undefined reference errors.
Arduino: 1.8.5 (Windows 10), Board: "Arduino Pro or Pro Mini, ATmega328P (3.3V, 8 MHz)"
keysweeper_mcu_src.ino:1136: undefined reference to RF24::begin()' keysweeper_mcu_src.ino:810: undefined reference to
RF24::setAutoAck(bool)'
keysweeper_mcu_src.ino:811: undefined reference to RF24::setPALevel(rf24_pa_dbm_e)' keysweeper_mcu_src.ino:812: undefined reference to
RF24::setDataRate(rf24_datarate_e)'
keysweeper_mcu_src.ino:813: undefined reference to RF24::setPayloadSize(unsigned char)' keysweeper_mcu_src.ino:814: undefined reference to
RF24::setChannel(unsigned char)'
keysweeper_mcu_src.ino:820: undefined reference to `RF24::openReadingPipe(unsigned char, unsigned long long)'
.............
Seems to be somekind of problem when keeping RF24 libary with this code. When i install that as a library seems to work ok, dont know atm whats the problem (i did edit the path in RF24.h for the RF24_config.h)
Im getting also error from RF24.
Seems to be a lot of undefined reference errors.
Arduino: 1.8.5 (Windows 10), Board: "Arduino Pro or Pro Mini, ATmega328P (3.3V, 8 MHz)"
keysweeper_mcu_src.ino:1136: undefined reference toRF24::begin()' keysweeper_mcu_src.ino:810: undefined reference to
RF24::setAutoAck(bool)'
keysweeper_mcu_src.ino:811: undefined reference toRF24::setPALevel(rf24_pa_dbm_e)' keysweeper_mcu_src.ino:812: undefined reference to
RF24::setDataRate(rf24_datarate_e)'
keysweeper_mcu_src.ino:813: undefined reference toRF24::setPayloadSize(unsigned char)' keysweeper_mcu_src.ino:814: undefined reference to
RF24::setChannel(unsigned char)'
keysweeper_mcu_src.ino:820: undefined reference to `RF24::openReadingPipe(unsigned char, unsigned long long)'
.............
Hi~I also meet with the same problem.Have you solved it? I use the Arduino IDE.
@samyk
Have you had a moment to investigate this issue? I too am trying to replicate this project and am receiving a variety of undefined references all related to RF24 as describe above.
Happy to help with this issue further if I can.
All The Best,
Are you using https://github.com/maniacbug/RF24? I believe that was the version used -- unfortunately there are a ton of forks of it and I'm not sure particularly which was the library of the week. I'd suggest just going into the RF24 .h files and moving those functions from private
to public
.
I am. I played around with everything and got the code to compile. When I put the RF24.cpp file into the keysweeper_mcu_src directory, the code properly compiled. I didn't see that mentioned anywhere in the write up and I won't pretend to know why that made a difference. Hope that helps.