C project converted to C++ in s32ds for s32k144 board is not working.
#ifdef __cplusplus
extern "C" {
#endif
i found that by checking the __cplusplus is not defined for the above area is greyed in s32ds
please any one help me to solve this.
Hi,
Im using the c/c++ converter to convert the project from c to c++(which is in the File/New/Convert to a C/C++) and not creating new project with c++ supported because i need SDK to generate the driver code.
And im having S32DS Version: 2018.R1
Build id: 180326
Hi,
okay. It's not very clear for me - if I understand it correctly - you have project based on SDK (which is C only) and some part written by you in C++, correct? Technically Convert C/C++ adds C++ toolchain in C project:
the __cplusplus definition is valid for .cpp sources. So - if you have .cpp source you can use #ifdef __cplusplus - like on my hybrid testing project with main.cpp and .c SDK sources:
Anyway - what is your use case for mixing C/C++ ?
BR,
Jiri