添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
  • Knowledge Bases
  • 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.

    pastedImage_1.png

    but it Prompt compilation error

    pastedImage_2.png

    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

    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.