6 years, 7 months ago.

Standard for mbed C++

Hello. Does mbed compiler supports C++14 features/standards...? Thank you

1 Answer

6 years, 7 months ago.

The Online Compiler does not. If you're compiling with mbed CLI you can set the C++ version in a profile. See for example debug.json.

Put the profile somewhere on disk, and build with mbed compile --profile=path/to/profile.json (that's two dashes, but the forum does not like that :-)).

Accepted Answer

Thank you for your reply @Jan Jongboom.

posted by Ali Imran Siddiqui 29 Aug 2017

Again Hello @Jan Jongboom I have a question I'm working on AD7124 ADC with Nucleo F429 and facing a problem. I don't know but i'm observing , when i used printf statement then i'm getting output on sensor. and if i don't use printf statement then there is no output. for example when i return value out to another class function it returns printf("Analog main value %f.\n", out); return out; but if i comment print command im getting nothing. i don't think this is because of the print command but i'm new in mbed and using NucleoF429. one interesting thing is if i don't use print here in the first class from where i'm returning and use print statement in the other function where i'm calling the return value then it also works. what's the combination it has with the print statement. Please share the idea if you have any information about this problem Thank you.

posted by Ali Imran Siddiqui 29 Aug 2017