You lost me again. Code which compiled fine a few weeks ago now won't compile with Mbed lib. Rev 42. Went back to an old Rev 26 an it compiles OK.
The errors start with
"identifier "namespace" is undefined" in file "mbed.bldFileHandle.h", Line: 18, Col: 1
"expected a ";"" in file "mbed.bldFileHandle.h", Line: 18, Col: 15
Any advice, reading you can point me to.
won't compile with Mbed lib. Rev 42. Went back to an old Rev 26 an it compiles OK.
The new mbed library trigger a new build system that compiles C files as C and C++ files as C++.
You can read more information about this change on this forum post:
In short, you just need to rename the ".c" file that is failing to build to ".cpp".
What do you do if all your files are .cpp or .h and still get this error?
If you can't figure out which part of the code is responsible you can comment out code until the error is gone. Or if you want help the best option is publishing your code, and making a new topic with the link to the published code, then we can import your entire code and see if we can find the error.
Thanks. That helped. Deep down in a directory of a library I imported I missed a .c file.
Please log in to post a reply.
mbed, the fastest way to prototype with ARM based microcontrollers.
^ back to top