C/C++ S32DS Project

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

C/C++ S32DS Project

Jump to solution
471 Views
RBSamuel
Contributor III

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 Kudos
1 Solution
373 Views
AndreasStolze
Contributor IV

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

View solution in original post

1 Reply
374 Views
AndreasStolze
Contributor IV

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