I believed...
include directive works well. I have problem to edit the Makefile in order
to compile also the C file.


2008/1/30, AIGroup <[EMAIL PROTECTED]>:
>
> Hi all.
> I would like to include some routines in my nesC code as follows
> (considering the BlinkApp for example):
> /* nesC code*/
> implementation
> {
>      #include "c_code.h"
>
>     event void Boot.booted()
>     {
>         call Timer0.startPeriodic( 250 );
>     }
>
>     event void Timer0.fired()
>     {
>         Hello(); //Hello() is a function which is inside my C code
>     }
> }
> -------------------------
> /*C code*/
> /*c_code.h*/
>
> #ifndef C_CODE
> #define C_CODE
>
> void Hello();
>
> #endif
>
> ---------------
> /* c_code.c */
>
> #include "c_code.h"
>
> void Hello()
> {
>    printf("HELLO!\n")
> }
> ---------------
> Compilation terminate with success, but if i try to execute a simulation,
> this following error occurs:
> undefined symbol: BlinkC$Hello
> How can I solve this problem?
> Thank you very much for your help!
>
>
>
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to