#333 log() only exists as logf()

open
gcc (183)
5
2012-09-17
2012-09-17
Anonymous
No

Compiler generates a linker error for the following program. Program is compiled with msp430-gcc -mmcu=msp430g2553 main.c -o foo.elf -lm.
Also see mailing list archive: http://sourceforge.net/mailarchive/message.php?msg_id=29818206

main.o: In function `main':
/Users/rwessels/tmp/log_bug/main.c:9: undefined reference to `log'
collect2: ld returned 1 exit status
make: *** [null.elf] Error 1

#include <msp430.h>
#include <math.h>

unsigned int foo = 0;
int main()
{
double var = log(foo);
var++;
}

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks