I've solved the problem. I've added the flag -shared to PLATFORM_LIB_FLAGS.
Now its aspect is:

PLATFORM_LIB_FLAGS = -shared -L/bin -lstdc++ -lpython$(PYTHON_VERSION)

Thanks so much.

--Eva--

-----Mensaje original-----
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] En nombre de Eva Maria
Garcia
Enviado el: viernes, 23 de febrero de 2007 18:55
Para: 'Philip Levis'
CC: [email protected]
Asunto: RE: RV: [Tinyos-help] Problem TOSSIM 2.0 on Cygwin (Python?)

Adding the -shared flag where? Please, could you explain in more detail? I'm
beginning with TinyOS and I'm following tutorials.



-----Mensaje original-----
De: Philip Levis [mailto:[EMAIL PROTECTED] 
Enviado el: viernes, 23 de febrero de 2007 18:38
Para: Eva Maria Garcia
CC: [email protected]
Asunto: Re: RV: [Tinyos-help] Problem TOSSIM 2.0 on Cygwin (Python?)

On Feb 23, 2007, at 3:55 AM, Eva Maria Garcia wrote:

> I've done what you tell me. I've tried the following options:
>
> PLATFORM_LIB_FLAGS = -L/$(PYDIR)/config -lstdc++ -lpython$ 
> (PYTHON_VERSION)
> -L/bin
> PLATFORM_LIB_FLAGS = -L/$(PYDIR)/config /bin -lstdc++
> -lpython$(PYTHON_VERSION)
> PLATFORM_LIB_FLAGS = -L/$(PYDIR)/config -L/bin -lstdc++
> -lpython$(PYTHON_VERSION)
> PLATFORM_LIB_FLAGS = -L/bin -lstdc++ -lpython$(PYTHON_VERSION)
>
> The result is:
>
> 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/include/python2.4/config -lstdc++ -lpython2.4 -L/bin -o  
> _TOSSIM.dll
> ...
> ...
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o): 
> (.text+0x
> ab): undefined reference to [EMAIL PROTECTED]'
> collect2: ld returned 1 exit status
> make: *** [sim-exe] Error 1
>
> The next are similar and the error is the same.
>
> I'm lost.

Try adding the -shared flag?

Here is something I found on Google: http://curl.haxx.se/mail/ 
archive-2003-01/0056.html

This seems to come up for a small subset of Cygwin installations, I'm  
not sure which ones.

Phil

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

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

Reply via email to