How the project is configured when referencing the lib library
08-10-2022
07:36 PM
940 次查看
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.
2 回复数
08-12-2022
08:21 AM
929 次查看
mikedoidge
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
04-16-2024
06:35 PM
474 次查看
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.
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.