Hi,

In my nesC application I include a file called "mirdef.h"
includes mirdef.h;

exemple of lines in the mirdef.h :

#define MIRACL 16 
#define mr_utype int

The problem is when I use MIRACL in my application code the compiler don't 
recognize this variable (MIRACL) (I think the problem is in the #define).

$ 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=0x49d9c7bfL -DIDENT_UID_HASH=0x3b1b9d2cL Miller.nc -lm -L. -lmiracl

MillerM.nc:31: `MIRACL' undeclared here (not in a function)

Could you please help me???


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

Reply via email to