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.
7 years, 7 months ago.
Error after upgrading mbed lib to build 127
Hi
Get the following error after upgrading the mbed lib from build 26 to 127 (yes, I know, a big step). Target is LPC1768.
Any suggestions?
Error: "mbed::Stream::Stream(const mbed::Stream &)" (declared at <a href="#" onmousedown="mbed_doc_goto('/Interpreter_copyextras/mbed_25aea2a3f4e3/Stream.h', '66'); return false;">/extras/mbed_25aea2a3f4e3/Stream.h:66</a>) is inaccessible in "extras/mbed_25aea2a3f4e3/Serial.h", Line: 50, Col: 43
1 Answer
7 years, 7 months ago.
Assigning a Stream object to a Stream object has indeed been made inaccessible. Are you using this somewhere in your code?
Hi
After compling off-line with LPXCpresso I got a more elaborate error message.
I traced it back to my CMDB command interpreter lib's constructor that needs a Serial object to be passed.
Cmdb::Cmdb(const mbed::Serial& _serial, std::vector& _cmds, void (*_callback)(Cmdb&,int)) : serial(_serial), cmds(_cmds) {
For now I switched to RawSerial (seems to fix this problem) but still end up with new compilation issues again with error messages from outside my code only (so no clues), so cannot test if this works.
Question remains why is above code construct illegal for Serial?
posted by 05 Oct 2016