S32 DS,libraries support

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32 DS,libraries support

跳至解决方案
3,209 次查看
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.

 

标记 (1)
0 项奖励
回复
1 解答
3,056 次查看
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 项奖励
回复
3 回复数
3,120 次查看
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 项奖励
回复
3,076 次查看
zhouzy
Contributor I

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

especially about these configs of setting.

0 项奖励
回复
3,057 次查看
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 项奖励
回复