S32 DS,libraries support

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

S32 DS,libraries support

Jump to solution
3,231 Views
zhouzy
Contributor I

when I bulid a project using S32 DS,there are some problems like:

Ld errors:undefined reference to 'floors'

Actually,floors is a function which is defined in <math.h>

FAE from agent gives me a solution and it works:

 change the configuration in libraries support(properties->settings->Target Processor):

newlib no I/O (-specs=nosys.specs)    -> ewl_c no I/O(-specs=ewl_c9x_noio.specs)

sysroot is also modified automatically.

**********************************************

My Question is what are the meanings of these configurations about libraries support.

and can i get a detail documentation about all the settings of S32 DS

thanks a lot.

 

Tags (1)
0 Kudos
Reply
1 Solution
3,078 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

this settings is not related to S32DS itself - it is tool-chain dependent. This menu is different for IAR or for GCC in this case. It is standard GCC configuration - you can add compiler options, include paths, library paths, libraries, preprocessor macros and So on. 

 

You can find more details in Help ->: Help Contents and search for Project Properties. 

View solution in original post

0 Kudos
Reply
3 Replies
3,142 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

you switched STD C library from NewLIB to EWL (old STD C library maintained by NXP) and there is included math library, normally is math library standalone lib archive. . 

 I recommend use NewLIB and simply add math library into your project like on screensthot. Right click on project name -> Properties -> C/C++ Build -> Settings -> Libraries: 

jiri_kral_0-1695042218957.png

 

0 Kudos
Reply
3,098 Views
zhouzy
Contributor I

thanks to your reply.Can I get some guiding materials about S32 DS?

especially about these configs of setting.

0 Kudos
Reply
3,079 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

this settings is not related to S32DS itself - it is tool-chain dependent. This menu is different for IAR or for GCC in this case. It is standard GCC configuration - you can add compiler options, include paths, library paths, libraries, preprocessor macros and So on. 

 

You can find more details in Help ->: Help Contents and search for Project Properties. 

0 Kudos
Reply