Tool/software: TI C/C++ Compiler
Hi,
I just tried out the Simple_Peripheral example project and it worked fine.
As I want to develop in C++ I now changed all the files in the project to *.cpp ending.
I had to correct some missing pointer casts but finally the compiler can compile it.
Unfortunately the linker now complains about incompatible redeclaration of a method in the example project.
Here's the error output:
error: symbol "GATT_bm_free" redeclared with incompatible type: "void(gattMsg_t *, uint8)" in "C:/ti/simplelink_cc13x2_26x2_sdk_2_40_00_81/source/ti/ble5stack/inc/gatt.h" at line 1486 and: "void(gattMsg_t *, uint8)" in "C:/ti/simplelink_cc13x2_26x2_sdk_2_40_00_81/source/ti/ble5stack/inc/gatt.h" at line 1486)
I don't understand the error message here, it's in same file and same line stated and the C++ preprocessor lines regarding extern"C" are in the header so I don't know where the error really comes from.
I did the same thing before with the Simple_Central project and there it works out just fine without any error!
I would be really glad if you can help me with this, attached you can find the project source for a deeper look into it!
kind regards