Hi I tried ncc -v and it seems to be fine, however in order to be sure I pasted it below so that more experienced user could verify it.
As I am working in cygwin I have also tried to write a simple c program using log function and it was working good. I also have another question. Could anyone confirm of successful usage of math.h lib on telosb motes? Thanks in advance Marcin Foks $ ncc -v /usr/bin/nescc -fnesc-include=tos -topdir=/opt/tinyos-2.x -DPLATFORM_NULL -v -g c=gcc -fnesc-target=pc -fnesc-no-debug -fnesc-scheduler=TinySchedulerC,TinySche ulerC.TaskBasic,TaskBasic,TaskBasic,runTask,postTask -I/opt/tinyos-2.x /tos/plat orms/null -I/opt/tinyos-2.x/tos/lib/timer -I/opt/tinyos-2.x/tos/lib/serial -I/o t/tinyos-2.x/tos/interfaces -I/opt/tinyos-2.x/tos/types -I/opt/tinyos-2.x /tos/s stem nescc: 1.2.8a gcc -_fnesc-gcc=gcc -specs=/usr/lib/ncc/tdspecs -_fnesc-include=nesc_nx -I/usr/ ib/ncc -_fnesc-include=tos -DPLATFORM_NULL -v -_fnesc-target=pc -_fnesc-no-debu -_fnesc-scheduler=TinySchedulerC,TinySchedulerC.TaskBasic ,TaskBasic,TaskBasic, unTask,postTask -I/opt/tinyos-2.x/tos/platforms/null -I/opt/tinyos-2.x /tos/lib/ imer -I/opt/tinyos-2.x/tos/lib/serial -I/opt/tinyos-2.x/tos/interfaces -I/opt/t nyos-2.x/tos/types -I/opt/tinyos-2.x/tos/system -DNESC=128 Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/specs Reading specs from /usr/lib/ncc/tdspecs Configured with: /gcc/gcc-3.3.3-3/configure --verbose --prefix=/usr --exec-pref x=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/ hare/man --infodir=/usr/share/info --enable-languages=c,ada,c++,d,f77,java,objc pascal --enable-nls --without-included-gettext --enable-libgcj --with-system-zl b --enable-interpreter --enable-threads=posix --enable-java-gc=boehm --enable-s lj-exceptions --disable-version-specific-runtime-libs --disable-win32-registry Thread model: posix gcc version 3.3.3 (cygwin special) 2007/5/11, Philip Levis <[EMAIL PROTECTED]>:
On May 11, 2007, at 1:37 AM, Marcin Foks wrote: > Dear TinyOS mailing list subscribers, > > I have encountered a problem in TinyOS 2 with the log function (or > any other from the math.h) on the Telosb mote. I would appreciate > any help. > > $ make telosb > mkdir -p build/telosb > compiling DSCBaseAppC to a telosb binary > ncc -o build/telosb/main.exe -Os -O -mdisable-hwmul - > DCC2420_DEF_CHANNEL=24 -Wal > l -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telosb -fnesc- > cfile=build/ > telosb/app.c -board= DSCBaseAppC.nc -lm > /cygdrive/c/DOCUME~1/mfo/LOCALS~1/Temp/cc6kMIB8.o: In function > `SchedulerBasicP$ > TaskBasic$runTask': > app.c:(.text+0xed2): undefined reference to `log' > make: *** [exe0] Error 1 > > Thanks in advance > This is an issue with the underlying native C compiler. It looks like the make system is doing the right thing: it's linking in the math library (-lm). Try invoking ncc with -v to see if everything is being invoked properly? Phil
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
