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?

Martin

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

Reply via email to