Thanks Eric for the reply,
I have already put the files, ezcompress.c and ezcompress.h in the same
directory for my program, and i included the .h file in my code by #inlcude
ezcompress.h , it is assumed everything is seen by the linker but it still
complains !!. i feel it's a problem in the Makefile but i don't how to
configure . do you have any info?
Regards,
Mash'al.
Jordan
________________________________
From: Eric Decker <[email protected]>
To: Mashal al-shboul <[email protected]>
Cc: "[email protected]" <[email protected]>
Sent: Friday, February 24, 2012 10:41 PM
Subject: Re: [Tinyos-help] urgent need for help about error:" undefined
reference to"
you've caused code to be included that references an external.
The linker is complaining about not being able to find ezcompress.
you will need to research where to get the ezcompress code and will then need
to figure out yourself how to include that.
this is basic C programming with separate modules. Basic.
On Fri, Feb 24, 2012 at 6:48 AM, Mashal al-shboul <[email protected]> wrote:
Hi All,
>i am using tinyos 2.1.1 and nesc to write a program for imote2 platform, i
>need to use .c file for calling some methods in it, so i put this file and its
>.h file in the same directory and wrote
>
> #include "ezcompress.h", which is the file needed
>
>
>BUT i got this error:
>
>
>
>/tmp/cc5Ak8tM.o(.text+0x1ad4): In function `main':
>: undefined reference to `ezcompress'
>collect2: ld returned 1 exit status
>make: *** [exe0] Error 1
>
>
>
>
>note: i have experienced including another .h and .c files correctly, but this
>time it's rejected !!! :(
>
>
>any help is appreciated, Thanks in advance
>
>
>Mash'al.
>Jordan
>
>_______________________________________________
>Tinyos-help mailing list
>[email protected]
>https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
--
Eric B. Decker
Senior (over 50 :-) Researcher
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help