Thanks a lot.
Float version are supported: log10f(), sqrtf(), etc.

Manjunath D

################################################################################################################
***************************************************************************************************************

On Wed, 20 Oct 2010, Michael Schippling wrote:

> Check to see if there are float versions of those functions, something
> like sqrtf(). Some platforms don't support double versions which is
> what the "usual" math functions are...
>
> MS
>
>
> Manjunath Doddavenkatappa wrote:
>> Old archives suggest that it is posible to use math functions on telosb 
>> (MSP430). However, I still get undefined references to log(), sqrt(), etc.
>> 
>> "-lm" is NOT missing when ncc is invoked.
>> 
>> "ncc --version" output is
>> 
>> ncc: 1.2.4
>> nescc: 1.3.1
>> gcc: gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
>> Copyright (C) 2007 Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions.  There is NO
>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>> 
>> Following is the output of "ncc -v" as it may be useful.
>> 
>> /usr/bin/nescc -fnesc-include=tos -topdir=/opt/tinyos-2.1.1 
>> -fnesc-scheduler=TinySchedulerC,TinySchedulerC.TaskBasic,TaskBasic,TaskBasic,runTask,postTask
>>  
>> -DPLATFORM_NULL -v -fnesc-target=pc -fnesc-no-debug -gcc=gcc 
>> -I/opt/tinyos-2.1.1/tos/platforms/null -I/opt/tinyos-2.1.1/tos/lib/timer 
>> -I/opt/tinyos-2.1.1/tos/lib/serial -I/opt/tinyos-2.1.1/tos/interfaces 
>> -I/opt/tinyos-2.1.1/tos/types -I/opt/tinyos-2.1.1/tos/system
>> nescc: 1.3.1
>> gcc -_fnesc-gcc=gcc -specs=/usr/lib/ncc/tdspecs -_fnesc-include=nesc_nx 
>> -I/usr/lib/ncc -_fnesc-include=tos 
>> -_fnesc-scheduler=TinySchedulerC,TinySchedulerC.TaskBasic,TaskBasic,TaskBasic,runTask,postTask
>>  
>> -DPLATFORM_NULL -v -_fnesc-target=pc -_fnesc-no-debug 
>> -I/opt/tinyos-2.1.1/tos/platforms/null -I/opt/tinyos-2.1.1/tos/lib/timer 
>> -I/opt/tinyos-2.1.1/tos/lib/serial -I/opt/tinyos-2.1.1/tos/interfaces 
>> -I/opt/tinyos-2.1.1/tos/types -I/opt/tinyos-2.1.1/tos/system -DNESC=131
>> Using built-in specs.
>> Reading specs from /usr/lib/ncc/tdspecs
>> Target: i486-linux-gnu
>> Configured with: ../src/configure -v 
>> --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr 
>> --enable-shared --with-system-zlib --libexecdir=/usr/lib 
>> --without-included-gettext --enable-threads=posix --enable-nls 
>> --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 
>> --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc 
>> --enable-mpfr --enable-targets=all --enable-checking=release 
>> --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
>> Thread model: posix
>> gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
>> 
>> 
>> Manjunath D
>> 
>> ################################################################################################################
>> ***************************************************************************************************************
>> _______________________________________________
>> Tinyos-help mailing list
>> [email protected]
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to