Hi all, I am wondering if someone could shed some light the possibility of using libm from a driver in the kernel.
We have recently decided to move driver code that was developed on the application side of our project into the kernel side. The code in question includes math.h and makes use of a few math functions. However, when we build this configuration, the compile errors out with this message: In file included from /cygdrive/c/adr/code/ecos/ packages/devs/eth/arm/mxc/ktsradio/current/src/ktsradio.c:87:/ecos-c/adr/code/ecosbuild/install/include/math.h:228: error: syntax error before "do" make[1]: *** [src/ktsradio.o.d] Error 1 make[1]: Leaving directory `/cygdrive/c/adr/code/ecosbuild/devs/eth/arm/mxc/ktsradio/current' make: *** [build] Error 2 From math.h: 226 227 externC double 228 log( double ); // natural logarithm 229 Is there any restrictions on use of libm in the kernel (ie. like Linux kernel)? IF our approach is ok, can someone shed some light on how to make libm accessible for the ecos compile? Any guidance would be appreciated. Thank you, -- Michael Bergandi -- Michael Bergandi -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss