8 years, 11 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:

Contains example code to connect the mbed LPC1768 or FRDM-K64F devices to the IBM Internet of Things Cloud service via ethernet.

2 Answers

8 years, 11 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.

8 years, 11 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.