Hi
I creat a lib file with S32DS in this way: file->new->new s32ds project->library project ,and in this file , I creat a simple function to test that if it is ok .
Then I creat a elf project file,and add the lib file "libdiceng.a" into the elf project's workspace ,like below.
but it Prompt compilation error
I don't konw how to do this exactly ,thankyou.
Suomi
已解决! 转到解答。
Hi Suomi,
the library name needs to be lib<name>.a, but in the linker you only specify the name (without lib and .a).
See Creating and using Libraries with ARM gcc and Eclipse | MCU on Eclipse
or How to use Custom Library Names with GNU Linker and Eclipse | MCU on Eclipse
I hope this helps,
Erich
BlackNight, Thanks, I have another question, could you give me some help too? I got a library file from NXP, and add it to my project, but when I make the project, it has an error: "E:/Temp/Sources\TDF8534-CC.LIBRARY: file not recognized: File format not recognized." Does it mean that file can`t be used in S32 design studio? Or I need other setting?
Hi Suomi,
the library name needs to be lib<name>.a, but in the linker you only specify the name (without lib and .a).
See Creating and using Libraries with ARM gcc and Eclipse | MCU on Eclipse
or How to use Custom Library Names with GNU Linker and Eclipse | MCU on Eclipse
I hope this helps,
Erich