Hi,

I'm getting the following strange warning when trying to copy an nx_struct:

/var/folders/Vp/VpFq-iFtFDyRWCLJ4Cfquk+++TI/-Tmp-//ccMen2pF.o: In
function `SchedulerBasicP$TaskBasic$runTask':
app.c:(.text+0xec2): warning: internal error: unsupported relocation error

The struct and and code causing the error is below:

typedef nx_struct status {
        nx_uint8_t              error;
        nx_uint8_t              state;
} status_t;

task foo {
status_t *p = (status_t *) call StatusSend.getPayload(&spacket ,
sizeof(status_t));
memcpy(p, &status, sizeof(status_t)); //removing this line makes the
warning go away
...
}

I'm using nescc 1.3.0. Any ideas what may be going on?

Thanks!

-- Octav
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to