Hi,

I have a library called "miracl.a" and I want to use it in my application.

In my local make file I add :
PFLAGS += -I.
LDFLAGS += -L. -lmiracl

when I try to compile I found 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=0x49d725b0L -DIDENT_UID_HASH=0x24f234b2L Miller.nc -lm -L. -l mirac
l
gcc: unrecognized option `-pthread'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld: cannot
find -lmiracl
collect2: ld returned 1 exit status
make: *** [exe0] Error 1

The problem is when the compiler try to link in order to create the main .exe 
can't found this library.
 
Regards,
Rania  


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

Reply via email to