RTD can support C++ language?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RTD can support C++ language?

Jump to solution
208 Views
Zhangchangsheng
Contributor I

Zhangchangsheng_0-1777369458169.png

Zhangchangsheng_1-1777369485237.png

使用S32K344 C语言可正常开发;

现在我用C++语言开发,发现SDKs没有了,在官网也没有找到支持C++的RTD,想咨询是否后期会有相应的支持C++的RTD版本,或者是在现在支持C语言环境基础上做更改可以使用C++开发。

#S32K3 #RTD  

 

 

0 Kudos
Reply
1 Solution
177 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hello @Zhangchangsheng,

RTD packages are developed and tested in C language only. If you select C++, the RTD package will not show up to attach it to the project, however, they are made so that C++ is compatible through the "__cplusplus" macro.

In order to create a C++ application, you will need to create a C application and then convert it through the ""File > New > Convert to a C/C++ Project" option. There are various considerations when doing this, such as modifying the linker file, startup file, and changing bl main function; please refer to the community for some pointers:

Best regards,
Julián

View solution in original post

0 Kudos
Reply
2 Replies
178 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hello @Zhangchangsheng,

RTD packages are developed and tested in C language only. If you select C++, the RTD package will not show up to attach it to the project, however, they are made so that C++ is compatible through the "__cplusplus" macro.

In order to create a C++ application, you will need to create a C application and then convert it through the ""File > New > Convert to a C/C++ Project" option. There are various considerations when doing this, such as modifying the linker file, startup file, and changing bl main function; please refer to the community for some pointers:

Best regards,
Julián

0 Kudos
Reply
145 Views
Zhangchangsheng
Contributor I
OK,thanks!
0 Kudos
Reply