I'm considering transitioning a product codebase to the nRF family (nRF52 or nRF53).
It's Arduino code, with lots of C++ code.
As in the cpp_synchonization example provided with Zephyr, I can compile code with a C++ class defines in the CPP file.
I cannot when that class is defined in the H file (or HPP).
I get an error
...
TestCPP.hpp:2:1: error: unknown type name 'class'
2 | class foo
...
My whole small project is in a public GitHub repo here
I'm using:
- a MacBook M1
- MacOS 12.5
- VS Code 1.71.2
- Zephyr v2.0.0
- nRF52840_dk
In pro.con I have