Quote:> I need to use math functions (sin, cos, ....) on an embeded elinos system.

> the #include math.h is ok

> at link level the sin, cos ... functions are undefined

^^^^^^^^^^^^^

"Link level" implies that this has nothing to do with the kernel (*).

Quote:> How (and where) do I have to configure the elinos kernel in order

> to be able to call those functions in my project ??

It is also not specific to elinos: if you try to compile your

program on your host computer using it's native toolchain, it

will likely show the same behavior (my SuSE 8.0 system does).

The math functions are provided by the math library (libm.a).

Unlike the C library (which provides many functions, printf()

probably being the most popular one), the math library is not

linked in by default.

Solution: Add '-lm' to your linker commandline.

Rob

(*) As for the kernel (elinos or other): if your processor has no

built-in floating point unit (e.g. i386/i486SX), you must enable

the "math emulation" under "processor type and features"

--

Robert Kaiser email: rkaiser AT sysgo DOT de

SYSGO AG http://www.elinos.com

Klein-Winternheim / Germany http://www.sysgo.de