By wrote imitation I have settled on using "includes file"
at the top of code.nc files -- outside of all the definition
blocks {...} -- and "#include file.h" in header files.
I guess if I was smart I would go look in the NESCC doc to
see what's the difference and why, but it works for me.When debugging macros and headers I usually start moving things around to make sure I understand exactly what is wrong, so maybe try moving your defs into the actual code file, change their order and location in the files, and even try different spellings and parens to see if you can change the nature of the errors. And itroduce some obvious error to make sure you are really including the file you think you are. MS Rannouna Rania wrote: > Hi, > > can I use # include "file.h" instead of includes file in the tinyos v > 1.15 ?? > My problem that the compiler can't recognize Macros defined in the > header file !!! > when I use #include instead of includes the compiler don't accept > "typedef" and I obtain this error: > > /*$ make pc*/ > /*mkdir -p build/pc*/ > /* compiling Miller to a pc binary*/ > /*ncc -o build/pc/main.exe -g -O0 -I. -pthread -fnesc-nido-tosnodes=1000 > -fnesc-si*/ > /*mulate -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=pc > -fnesc-cfile*/ > /*=build/pc/app.c -board=micasb -DIDENT_PROGRAM_NAME=\"Miller\" > -DIDENT_USER_ID=\"*/ > /*rania\" -DIDENT_HOSTNAME=\"your-01199f19b2\" > -DIDENT_USER_HASH=0x23006c1eL -DIDE*/ > /*NT_UNIX_TIME=0x49da1887L -DIDENT_UID_HASH=0xdae6daceL Miller.nc -lm > -L. -lmiracl*/ > /* > */ > /*In file included from MillerM.nc:19:*/ > /*Miracl.h:211: parse error before `typedef'*/ > /*Miller.nc:25: cannot find `StdControl'*/ > /*make: *** [exe0] Error 1*/ > */ > /* > Could you please help me ??? I will be greatful... > > Regards, > Rania > > > ------------------------------------------------------------------------ > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
