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, 10 months ago.
GCC_ARM Compiler: Differences with online compiler
Team I am using offline mbed=cli with GCC_ARM. As of now i see the following two differences
1) Online compiler lets a const on an enumeration. GCC_ARM doesn't.
2) For LPC15xx, online lets a Serial array to be formed where as offline GCC_ARM doesnt let you do that. Error is listed below. However we dont have this problem with RawSerial
<<compliaiton output>>
Error] Serial.h@52,7: 'mbed::Stream::Stream(const mbed::Stream&)' is private within this context
[ERROR] In file included from ./mbed-dev/mbed.h:75:0,
from ./main.cpp:1:
./mbed-dev/drivers/Serial.h: In copy constructor 'mbed::Serial::Serial(const mbed::Serial&)':
./mbed-dev/drivers/Serial.h:52:7: error: 'mbed::Stream::Stream(const mbed::Stream&)' is private within this context
class Serial : public SerialBase, public Stream {
^~~~~ In file included from ./mbed-dev/drivers/Serial.h:23:0,
from ./mbed-dev/mbed.h:75,
from ./main.cpp:1:
./mbed-dev/drivers/Stream.h:68:5: note: declared private here
Stream(const Stream&);
^~~~~ ./main.cpp: At global scope:
./main.cpp:20:84: note: synthesized method 'mbed::Serial::Serial(const mbed::Serial&)' first required here
Serial serialPorts[3] = {Serial(P0_XX,P0_yy),Serial(P0_xx,P0_yy),Serial(px,py)};
<<compliaton output>>