How to make library file?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to make library file?

Jump to solution
2,246 Views
kbj
Contributor IV

Hi,

I use S32DSforARM.2018.R1 and SDK RTM2.0.0.

I want to make library file for a function.

How to make library file? and How to add library file?

Best regards,

Byungju.

0 Kudos
Reply
1 Solution
1,931 Views
b48014
NXP Employee
NXP Employee

Hi Byungju,

This is done in the same way as for any Eclipse CDT based IDE.

You can create Library project from Wizard or change the Artifact type in the project settings:

pastedImage_2.png

The library can be added in the Linker settings. You should set library name and path, for example:
pastedImage_3.png

Best regards,

Dmitry

View solution in original post

0 Kudos
Reply
6 Replies
1,932 Views
b48014
NXP Employee
NXP Employee

Hi Byungju,

This is done in the same way as for any Eclipse CDT based IDE.

You can create Library project from Wizard or change the Artifact type in the project settings:

pastedImage_2.png

The library can be added in the Linker settings. You should set library name and path, for example:
pastedImage_3.png

Best regards,

Dmitry

0 Kudos
Reply
1,931 Views
kbj
Contributor IV

Dear Dmitry,

Thanks for your response.

I add library following your answer.

But Copile error is occured.

1.PNG

How can I resolve it?

Please let me know.

Thanks and best regards,

Byungju.

0 Kudos
Reply
1,931 Views
b48014
NXP Employee
NXP Employee

Hi Byungju,

1. Looks like you have  error with libc. Could you show me your Target Processor settings? 

pastedImage_1.png

Please double check Libraries support field.

2. Please delete prefix lib from library name. From the gcc documentation:

-l library ...

... surrounds library with lib and .a and searches several directories.

Best regards,

Dmitry

0 Kudos
Reply
1,931 Views
kbj
Contributor IV

Dear Dmitry,

My target processor setting is like below.

1.PNG

best regards,

Byungju.

0 Kudos
Reply
1,931 Views
b48014
NXP Employee
NXP Employee

Hi Byungju,

Could you try to select "newlib no I/O" instead of "ewl no I/O". 

You can also send me your projects (application and library) to test.

Best regards,

Dmitry

0 Kudos
Reply
1,931 Views
kbj
Contributor IV

Dear Dmirty,

Thanks for your response.

I resolve it by using another way.

I input library name like below.

1.PNG

Thanks and best regards,

Byungju.

0 Kudos
Reply