How to create and use static library in S32DS

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

How to create and use static library in S32DS

1,325 Views
1450132053
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
2 Replies

1,319 Views
jiri_kral
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

27 Views
NXP2
Contributor I
Hello, I follow the normal methods of generating and adding static libraries. When I added static libraries, the following error appeared. May I ask what caused it?

Building target: BMS_2_2.elf
Invoking: Standard S32DS C Linker
arm-none-eabi-gcc -o "BMS_2_2.elf" "@BMS_2_2.args"
arm-none-eabi-gcc.exe: error: : No such file or directory
make: *** [makefile:86: BMS_2_2.elf] Error 1
"make -j16 all" terminated with exit code 2. Build might be incomplete.
0 Kudos