Am 06.04.2003 00:13:23, schrieb Petr Hanc <ha...@centrum.cz>:

>I have this problem too. It seems that msp430-gcc.exe ignores the -l
>option.
>
>This command returns "undefined reference" error:
>
>msp430-gcc -mmcu=msp430x149 -g -lm pokusy.o

"-lm pokusy.o"

>Linking using msp430-ld works fine:
>msp430-ld -m msp430x149
...
>-L/cygdrive/c/programy/mspgcc/lib pokusy.o -lm -lgcc -lc -lgcc

"pokusy.o -lm"

do you see the difference? the order matthers!

HTH
chris



Reply via email to