Hi all, I am porting my 100% working code from keil to use C++ and GCC and when I use the macro NFC_NDEF_MSG_DEF
to initializate the NDEF message I receive the following message from the compiler:
> >NFC.cpp(50,2): note : in expansion of macro 'NFC_NDEF_MSG_DEF'
1> NFC_NDEF_MSG_DEF(welcome_msg, MAX_REC_COUNT);
1> ^~~~~~~~~~~~~~~~
1>../libraries/nfc/ndef/generic/message/nfc_ndef_msg.h:127:9: sorry, unimplemented: non-trivial designated initializers not supported
1> }
1> ^
1>NFC.cpp(50,2): note : in expansion of macro 'NFC_NDEF_MSG_DEF'
1> NFC_NDEF_MSG_DEF(welcome_msg, MAX_REC_COUNT);
it looks like some issue with the nfc_ndef_msg.h
when I call the macro NFC_NDEF_MSG_DEF
with using GCC and C++ code. Are the NFC libaries not compatible with c++ code?
some one can give an advise?
Thanks, Marco