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.
已解决! 转到解答。
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.
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:
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.