You just need to define your function like "void printfFloat(float
toBePrinted) { }" in the header file, declare the header file in your
component and make the usual call like printfFloat(12.2) or something, why
is it so complicated for you.



On Tue, Oct 16, 2012 at 1:17 PM, medi <[email protected]> wrote:

> Hello,
> I would like to use a C function in my nesc program.
> I add the .h file in my header and it's location in the makefile.
> But when i try to compile, i have this error : undefined reference to
> 'function'
> Please help, and thanks in advance.
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



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

Reply via email to