Hi,

I am struggling with the linker, when I try to run programs over existing C
functions.

Apparently I cant initialize variables at declaration Ex:

volatile Word2_t gw2BatteryVoltage= 0;



linker Output:

/cygdrive/c/DOCUME~1/ALEXAN~1/LOCALS~1/Temp/ccUZLX45.o:(.data+0x0): multiple
definition of `gw2BatteryVoltage'

/cygdrive/c/DOCUME~1/ALEXAN~1/LOCALS~1/Temp/cc67aL2I.o:(.data+0x0): first
defined here



But if I use :

volatile Word2_t gw2BatteryVoltage;

I get no linker error.



As well, I cannot declare functions using void as input parameter Ex:
whatever(void) (this is not a problem, I just fell it could be related ).

Does anyone have any idea  where I should look to solve this problem

The original code is working with the mspgcc compiler, I copied  the
eyesIFX  platform  to  make mine expecting that eyesIFX was using mspgcc. Am
I right?


Many thanks in advance,
Jack T



>
> On Mon, Apr 7, 2008 at 2:35 PM, Kevin Klues <[EMAIL PROTECTED]> wrote:
>
> > I meant add cflags in your makefile such as
> >
> > CFLAGS += foo.c
> >
> > Kevin
> >
>
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to