How the project is configured when referencing the lib library
08-10-2022
07:36 PM
943 Views
LiuJie_Joynext
Contributor I
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 Replies
08-12-2022
08:21 AM
932 Views
mikedoidge
NXP Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
477 Views
NXP2
Contributor I
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.