Adding parts written in C++ to sdcc is currently hard, as is reusing code from sdcc in a C++ application.
I found two problems:
- Custom bool. Suggested solution: Use bool from stdbool.h instead.
- class member in specifier. Suggested solution: Rename class to sclass.
Philipp
The bool and class issue has been resolved in header files.
A remaining issue the conflict between SDCCy.h and the boost libraries.
Philipp
While sdcc is not C++-friendly enough to be compiled by a C++ compiler it is now possible to include sdcc headers from C++ code.