Did you include the file with the string: #include "mirdef.h"
-----Original Message----- Date: Mon, 6 Apr 2009 03:16:15 -0700 (PDT) From: Rannouna Rania <[email protected]> Subject: [Tinyos-help] problem with #define To: [email protected] Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1" 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??? -- Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f Sponsor: Diventa uno dei magnifici 8! Entra a fare parte della squadra Italiana di Poker Sportivo con PokerClub Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=8804&d=6-4 _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
