Thank you for your help. 2012/10/16 Antonio Liñán C. <[email protected]>
> This has already been asked and answered in the ML, I've created an > example here: > > > http://zolertia.sourceforge.net/wiki/index.php/Mainpage:TOS_advanced#Include_C_functions_in_nesC_code > > Hope it helps, > > --Antonio > > On Tue, 2012-10-16 at 13:36 +0200, wasif masood wrote: > > > > > > > > > > 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 > > >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
