Hi, I have a problem, when I try to use the CTool Library in a c++ file.
I get a lot errors out of the StmLibrary.h file concerning the CODE_SECTION pragmas, which are written in C-style. I expected the compiler to be smart enough to handle these, since there is thiscounstruction around the header file.
#ifdef __cplusplus
extern "C" {
#endif
also the symbol __bool_true_false_are_defined is not defined during build time. At least this was easy to work around.
The most confusing thing is that I get an error in my c++ source file, that a "}" is missing:
error #68: expected a "}"
Actually I have no idea what's the reason for this strange error message, since my source code is correct.
I have tried this bouth with a C-file and a C++-file (exactly the same source code), For the C-file everything works fine, but the C++ version does not compile correctly.
Unfortunalty using C-Source Code is not an option for my application. Do you have any suggestions how to solve this error? I really expected the TI libraries being able to be called from both C and C++ routines.
Regards Fabian
P.S. I have attached my test project with one C-Version and one C++-Version of the code so you can reproduce the error. It's only a plain project just to verify the different behavior in C/C++ Files.