On Feb 13, 2007, at 7:12 AM, Prem Krishnan wrote:

Hi all,

I'm getting the following error whenever I try to compile Blink for TOSSIM:-

$ m
g++ -c -DUSE_DL_IMPORT -fpic -o build/micaz/c- support.o -g -O0 -I/ usr/include/p ython2.3 /opt/tinyos-2.x/tos/lib/tossim/hashtable.c -I/usr/lib/ python2.3 -I/opt/
tinyos-2.x/tos/lib/tossim
cc1plus: warning: -fpic ignored for target (all code is position independent)
  linking into shared object ./_TOSSIM.dll
g++ -fpic -W1,--enabled-auto-image-base build/micaz/pytossim.o build/micaz/sim .o build/micaz/tossim.o build/micaz/c-support.o -L/usr/bin -L//usr/ lib/python2.3
/config -lstdc++ - lpython2.3 -o _TOSSIM.dll
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../libcygwin.a (libcmain.o)(.text+0x7
c): undefined reference to [EMAIL PROTECTED]'
collect2: ld returned 1 exit status
make: *** [sim-exe] Error 1

I have setup my sim.extra file to point to the correct python libraries but this doesn't seem to be connected to it. I'd really appreciate if someone could help me out with this.


If you look back in the archives, this issue has come up before. Someone posted a solution. If you add a -shared option to PLATFORM_BUILD_FLAGS you should be OK.

Basically, it looks like there are many different tweaks of the Cygwin gcc toolchain out there, each of which requires its own secret incantations.

Phil

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to