Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

log(variable) not working

$
0
0

Hello guys.
I am using the Energia software and MSP430F5529 LaunchPad, if I write

log(10); is okay, but if I write

int a = 10;

log(a) gives error ([energia-0101E0014\hardware\tools\msp430\bin\msp430-gcc, -Os, -Wl,-gc-sections,-u,main, -mmcu=msp430f5529, -o,).

From what I have read I need to put "-lm"in compilation, like "...msp430-gcc, -lm..." , but can I do that on the Energia software?

Tanks for help guys!

screenshot.jpg


Viewing all articles
Browse latest Browse all 2077

Trending Articles