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
217 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
186 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
187 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
154 Views
Zhangchangsheng
Contributor I
OK,thanks!
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2357282%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3ECan%20RTD%20support%20C%2B%2B%20language%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2357282%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Zhangchangsheng_0-1777369458169.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Zhangchangsheng_0-1777369458169.png%22%20style%3D%22width%3A%20365px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Zhangchangsheng_0-1777369458169.png%22%20style%3D%22width%3A%20365px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F383845iEFC8C5A4FFF19ADE%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Zhangchangsheng_0-1777369458169.png%22%20alt%3D%22Zhangchangsheng_0-1777369458169.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Zhangchangsheng_1-1777369485237.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Zhangchangsheng_1-1777369485237.png%22%20style%3D%22width%3A%20375px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Zhangchangsheng_1-1777369485237.png%22%20style%3D%22width%3A%20375px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F383846i0239F255FE12A26C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Zhangchangsheng_1-1777369485237.png%22%20alt%3D%22Zhangchangsheng_1-1777369485237.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EIt%20can%20be%20developed%20normally%20using%20the%20S32K344%20C%20language%3B%3C%2FP%3E%3CP%3ENow%20I%20am%20developing%20in%20C%2B%2B%2C%20I%20found%20that%20the%20SDKs%20are%20not%20available%2C%20and%20I%20didn't%20find%20RTD%20supporting%20C%2B%2B%20in%20the%20official%20website%2C%20I%20would%20like%20to%20ask%20if%20there%20will%20be%20a%20corresponding%20RTD%20version%20supporting%20C%2B%2B%20at%20a%20later%20stage%2C%20or%20I%20can%20use%20C%2B%2B%20to%20develop%20by%20making%20changes%20to%20the%20current%20environment%20that%20supports%20C%20language.%3C%2FP%3E%3CP%3E%23S32K3%20%23RTD%20%20%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2358041%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20RTD%20can%20support%20C%2B%2B%20language%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2358041%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F262194%22%20target%3D%22_blank%22%3E%40Zhangchangsheng%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3ERTD%20packages%20are%20developed%20and%20tested%20in%20C%20language%20only.%20If%20you%20select%20C%2B%2B%2C%20the%20RTD%20package%20will%20not%20show%20up%20to%20attach%20it%20to%20the%20project%2C%20however%2C%20they%20are%20made%20so%20that%20C%2B%2B%20is%20compatible%20through%20the%20%22%3CSPAN%3E__cplusplus%22%20macro.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EIn%20order%20to%20create%20a%20C%2B%2B%20application%2C%20you%20will%20need%20to%20create%20a%20C%20application%20and%20then%20convert%20it%20through%20the%20%22%22%3CSTRONG%3EFile%20%26gt%3B%20New%20%26gt%3B%20Convert%20to%20a%20C%2FC%2B%2B%20Project%3C%2FSTRONG%3E%22%20option.%20There%20are%20various%20considerations%20when%20doing%20this%2C%20such%20as%20modifying%20the%20linker%20file%2C%20startup%20file%2C%20and%20changing%20bl%20main%20function%3B%20please%20refer%20to%20the%20community%20for%20some%20pointers%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FS32K358-C-project-based-on-S32DS3-5%2Fm-p%2F2058809%22%20target%3D%22_blank%22%3ERe%3A%20S32K358%20C%2B%2B%20project%20based%20on%20S32DS3.5%20-%20NXP%20Community%3C%2FA%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FS32K3xx-S32DS-created-quot-Application-Project-quot-incompatible%2Ftd-p%2F1766518%22%20target%3D%22_blank%22%3ESolved%3A%20S32K3xx%3A%20S32DS%20created%20%22Application%20Project%22%20incompatible%20with%20RTD%20-%20NXP%20Community%3C%2FA%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32-Design-Studio%2FC-C-S32DS-Project%2Ftd-p%2F1791108%22%20target%3D%22_blank%22%3ESolved%3A%20C%2FC%2B%2B%20S32DS%20Project%20-%20NXP%20Community%3C%2FA%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%3EBest%20regards%2C%3CBR%20%2F%3EJuli%C3%A1n%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2358404%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20RTD%20can%20support%20C%2B%2B%20language%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2358404%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3EOK%2C%20thanks!%3C%2FLINGO-BODY%3E