How the project is configured when referencing the lib library

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

How the project is configured when referencing the lib library

705 次查看
LiuJie_Joynext
Contributor I

We are using the chip of S32K314 for development.

When we need to reference the lib library, we don't know how to configure the name of the library in the following configuration to ensure that the compilation passes (C/C++ Build→Settings→Libraries).

For example, the name of the library is libe2e.a, and we cannot configure it as "e2e" or "libe2e".

Please help confirm how this part should be configured, thank you.

0 项奖励
回复
2 回复数

694 次查看
mikedoidge
NXP Employee
NXP Employee

Hello @LiuJie_Joynext,

We have an article which you may find useful for this topic:

HOWTO: Add a static library file into S32DS GCC project

Hope it helps,

Mike

0 项奖励
回复

239 次查看
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 项奖励
回复