C/C++ S32DS Project

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

C/C++ S32DS Project

跳至解决方案
405 次查看
RBSamuel
Contributor II

Hello everyone!

I`m creating a C/C++ application on S32DS specific for the S32K344.
Since on C++ there is no RTD, I saw a few solutions on the forum that "migrate" the C project to C++, however when I do the following process, some errors occur:

I create a C project and add the SDK:

RBSamuel_0-1705580906514.png

Then I add the nature of C++ to the project

RBSamuel_1-1705580932717.png

When I compile, I get the following message:

multiple definition of `_start'; c:/nxp/s32ds.3.5/s32ds/build_tools/gcc_v10.2/gcc-10.2-arm32-eabi/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/crt0.o:/local/nxa09502/release/opt/freescale/Earmv7nGCC/obj_newlib_nano/arm-none-eabi/thumb/v7e-m+fp/hard/libgloss/arm/semihv2m/../../../../../../../../src_newlib/libgloss/arm/crt0.S:345: first defined here

I tried also to do not use standard start files, but some other errors show up then:

RBSamuel_2-1705580976336.png

RBSamuel_3-1705581026532.png

Tried also copying the linker files, but no solution.


Does anyone how I could manage these errors?


Thank you!

 

0 项奖励
1 解答
307 次查看
AndreasStolze
Contributor III

Hi @RBSamuel ,

I guess my manual was not complete. Based on your error messages I think you need to add your linker file:

 

AndreasStolze_1-1706719668094.png

 

BR
Andreas

在原帖中查看解决方案

1 回复
308 次查看
AndreasStolze
Contributor III

Hi @RBSamuel ,

I guess my manual was not complete. Based on your error messages I think you need to add your linker file:

 

AndreasStolze_1-1706719668094.png

 

BR
Andreas