One of the Energia users stumbled upon what seems to be a bug.
The following compiles just fine.

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

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

This piece of code however gives: 

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++;
}

Seems that log() does not like variables.

Robert


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to