Re: [Tinyos-help] which one is the compiler choose when there are more components with same name

2006-11-16 Thread Hairong Yan
I found lesson9 and lesson10 in the website of http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/. My tinyOS is 1.18. I am afraid that is a tutorials for tinyos2.0. Whatever it is helpful. As Philip said I found the part of .platform file, but I can not found the other part. What is the file nam

Re: [Tinyos-help] which one is the compiler choose when there are more components with same name

2006-11-11 Thread Michael Schippling
I'm not sure which part you say you've found... In my T1 I don't find a tos/chips/... directory and thus no ".platform" file, at least if I understood the implications of phil's message. On the other hand, you can find ncc with "type ncc" in /usr/local/bin/ncc . It is a perl file and searching f

Re: [Tinyos-help] which one is the compiler choose when there are more components with same name

2006-11-10 Thread Michael Schippling
Oh, now I see...my doc/tutorial -- T1 -- directories only go up to lesson8.html...silly me. What'd I miss in lesson9 too? Does the advice below apply to T1 as well? thanks MS Philip Levis wrote: On Nov 9, 2006, at 12:16 PM, Michael Schippling wrote: Yes, wouldn't we all like to know that...

Re: [Tinyos-help] which one is the compiler choose when there are more components with same name

2006-11-09 Thread Philip Levis
On Nov 9, 2006, at 12:16 PM, Michael Schippling wrote: Yes, wouldn't we all like to know that... I just asked Phil if it was doc'ed someplace. I'd suspect that it's defined in the nesc scripts but I never went to look... There are two parts. The first is the default TinyOS part. This is in

Re: [Tinyos-help] which one is the compiler choose when there are more components with same name

2006-11-09 Thread David Gay
On 11/9/06, Michael Schippling <[EMAIL PROTECTED]> wrote: Philip Levis wrote: > On Nov 8, 2006, at 5:51 PM, Michael Schippling wrote: > >> It's not "duplication", it's overloading... >> I haven't done an exhaustive search, but each of >> the same-named files/modules has different behavior -- >>

Re: [Tinyos-help] which one is the compiler choose when there are more components with same name

2006-11-09 Thread Michael Schippling
Philip Levis wrote: On Nov 8, 2006, at 5:51 PM, Michael Schippling wrote: It's not "duplication", it's overloading... I haven't done an exhaustive search, but each of the same-named files/modules has different behavior -- mostly due to platform or protocol differences. Care to re-invent C++

Re: [Tinyos-help] which one is the compiler choose when there are more components with same name

2006-11-09 Thread Michael Schippling
Yes, wouldn't we all like to know that... I just asked Phil if it was doc'ed someplace. I'd suspect that it's defined in the nesc scripts but I never went to look... MS Hairong Yan wrote: Dear Michael Schippling, Very thanks for reply. I am afraid I have not clear the question. My question is

Re: [Tinyos-help] which one is the compiler choose when there are more components with same name

2006-11-09 Thread Hairong Yan
Dear Michael Schippling, Very thanks for reply. I am afraid I have not clear the question. My question is where the include order defined? I know them after make, but I want to know before make. Best regards! hairong yan >>> Michael Schippling <[EMAIL PROTECTED]> 2006-11-08 19:47 >>> There is an

Re: [Tinyos-help] which one is the compiler choose when there are more components with same name

2006-11-08 Thread Philip Levis
On Nov 8, 2006, at 5:51 PM, Michael Schippling wrote: It's not "duplication", it's overloading... I haven't done an exhaustive search, but each of the same-named files/modules has different behavior -- mostly due to platform or protocol differences. Care to re-invent C++ using directories inste

Re: [Tinyos-help] which one is the compiler choose when there are more components with same name

2006-11-08 Thread Michael Schippling
It's not "duplication", it's overloading... I haven't done an exhaustive search, but each of the same-named files/modules has different behavior -- mostly due to platform or protocol differences. Care to re-invent C++ using directories instead of name-spaces? sorry, my bad... MS Benjamin Mador

Re: [Tinyos-help] which one is the compiler choose when there are more components with same name

2006-11-08 Thread Benjamin Madore
There does seem (to me) to be a lot of unnecessary duplication throughout the tree. I seem to run accross it whenever I search for things. -- For some reason, the United States is the only country on Earth where accidents don't happen – it's always somebody's fault, and you can sue that somebody

Re: [Tinyos-help] which one is the compiler choose when there are more components with same name

2006-11-08 Thread Michael Schippling
There is an assumed include order defined _somewhere_ in the tool chain. You can add a -v to the nesc line to get a list of source files (but not necessarily header files unfortunately). Or you can search through the intermediate output app.c file. The make docs output will also show which modules

[Tinyos-help] which one is the compiler choose when there are more components with same name

2006-11-08 Thread Hairong Yan
Dear Sir, I am reading the codes of CntToLedsAndRfm, I notes there are two components named RadioCRCPacket, one is in the directory of system, one is in the platform. The compiler choose the one in the platform directory. But in the makefile I can not found any rule of it, why? Thanks in advance. b