On Fri, Feb 24, 2012 at 1:06 PM, Mashal al-shboul <shboul8...@yahoo.com>wrote:

> 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?
>

I'd encourage you to do a simple Google search.    It is what I did:

"tinyos external c code"
http://www.google.com/search?client=safari&rls=en&q=tinyos+external+c+code&ie=UTF-8&oe=UTF-8

Two links that look promising are:

http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2011-October/052635.html

http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2007-September/028079.html



You can also do reasonable searches on

http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/




So please try to do more research for generating noise on the list.   We
don't mind helping, but would like it much better if you exhausted more of
what you could determine on your own first.

eric



>
> Regards,
>
> Mash'al.
> Jordan
>   ------------------------------
> *From:* Eric Decker <cire...@gmail.com>
> *To:* Mashal al-shboul <shboul8...@yahoo.com>
> *Cc:* "tinyos-help@millennium.berkeley.edu" <
> tinyos-help@millennium.berkeley.edu>
> *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 <shboul8...@yahoo.com>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
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
>
>
> --
> Eric B. Decker
> Senior (over 50 :-) Researcher
>
>
>
>
>


-- 
Eric B. Decker
Senior (over 50 :-) Researcher
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to