Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 2 months ago.
error: #397 in Timer.h when trying to compile
Hi,
after spending some time in setting up my environment I'm in the phase of complilation.
Meanwhile I updated all libraries used in this example but I still end up with one error I'm not able to analyze/understand:
Error message is:
#
mbed\Timer.h(45): error: #397: implicitly generated assignment operator cannot copy:
const member "mbed::Timer::_ticker_data"
class Timer {
^
detected during implicit generation of "mbed::Timer &mbed::Timer::operator=(const mbed::Timer &)" at line 11 of "MQTT\MQTTmbed.h"
#
The problem persists independently whether I use ARM mbed online compiler or uVision V5 locally.
Any ideas how to get rid of this ?
Kind regards uef
Question relating to:
![](/media/cache/profiles/IoT_for_mbed.jpg.50x50_q85.jpg)
2 Answers
9 years, 2 months ago.
Hi,
Thanks for the report. I think this is a problem with mbed library (from rev 98 onward).
I have raised an issue here: https://github.com/mbedmicro/mbed/issues/1124
To workaround this, please change mbed library revision 97 (or older). Right click "mbed" library in your project - Choose "Revisions..." - Click Rev "97" - Click "Switch" button.
9 years, 2 months ago.
Thanks for reporting and @MACRUM for adding this to github. This is PR for this issue: https://github.com/mbedmicro/mbed/pull/1125
This will be fixed in next revision of the mbed library.