8 years ago.

Is it Nucleo board or syntax problem

Hello!

I am starting with C++. My program looks quite much like C, additionally My board Nucleo-767ZI is still not supported, so I can not decide what is the problem. Is it a programming issue or unsupported board? The error messages is :

Error: Identifier "namespace" is undefined in "extras/mbed_9bcdf88f62b0/drivers/DigitalIn.h", Line: 24, Col: 2 Error: Expected a ";" in "extras/mbed_9bcdf88f62b0/drivers/DigitalIn.h", Line: 24, Col: 17 Warning: Parsing restarts here after previous syntax error in "extras/mbed_9bcdf88f62b0/drivers/DigitalIn.h", Line: 112, Col: 17 Error: Expected a declaration in "extras/mbed_9bcdf88f62b0/drivers/DigitalIn.h", Line: 113, Col: 2 Error: Expected a declaration in "extras/mbed_9bcdf88f62b0/drivers/DigitalIn.h", Line: 115, Col: 2 Warning: Parsing restarts here after previous syntax error in "extras/mbed_9bcdf88f62b0/drivers/DigitalOut.h", Line: 123, Col: 17 Error: Expected a declaration in "extras/mbed_9bcdf88f62b0/drivers/DigitalOut.h", Line: 124, Col: 2

Thank you for the help in advance!

1 Answer

8 years ago.

I've seen similar error logs in my early days as an mbed user. Is your source file main.c? If so, rename it main.cpp.

Accepted Answer

Thank you dealing with my issue. It is cpp and others was c. I renamed cpp and hpp all the files and seems it works.

posted by László Garab 12 Nov 2016