On Feb 6, 2006, at 5:02 AM, Martin Gercke wrote:
Hi,
I read a lot about includes and #include and how it should be dealt
with in Tinyos 2.x
Since I am working with Tinyos 1.x (nesc. 1.1.2) I am interested to
know about the restrictions and the right way to do this.
I am trying to use #include since I can use #define in the header-
file and still use the defined constants outside of the header-file.
But I somehow can't include a header-file with #include. I always
get an error when I try to include the header-file before the
interface statement like below.
The error is "parse error before 'typedef'".
// includes test;
#include "test.h"
interface test {
[...]
}
Everything works fine if I use "includes". Except the #define-
statements are only valid in the header-file.
Suggestions?
Or should I not use #define statements that should be shared
between different nc-files?
#include doesn't have any special conflicts with interfaces. E.g.,
AMSend in 2.x #includes 3 header files.
Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help