How to create and use static library in S32DS

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create and use static library in S32DS

69 Views
Contributor II

Hi Nxp!

  Recently, I encountered a problem when using S32DS_v2.2 to compile my project with other static library. I refer to guidance of HOWTO:Add a static library file into S32DS GCC projectileshttps://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Add-a-static-library-file-into-S...; I think I have no problem setting it up, but the following error occurs during compilation. Can you help find the cause of the problem? thank you very much

Description Resource Path Location Type
Ld error: can_pal_s32k142.elf uses VFP register arguments, E:/DeskTop/1234/S32DS/testFunction1/Debug\libtestFunction1.a(mylibrary.o) does not C/C++ Problem

 

0 Kudos
1 Reply

63 Views
NXP Employee
NXP Employee

Hi, 

your issue is probably caused by different compilator settings for library and executable. You can find more details for example here - https://stackoverflow.com/questions/9753749/arm-compilation-error-vfp-registers-used-by-executable-n... 

The float point settings you can find in project properties:

jiri_kral_0-1602762241495.png

 

Jiri

0 Kudos