Nouchi

CW 6.3 for ColdFire and floating point functions

Discussion created by Nouchi on Aug 22, 2006
Latest reply on Aug 30, 2006 by CrasyCat
Hi,

I would build a simple stationery project for M5213EVB like this :

#include stdio.h
#include stdlib.h

int main()
{
char string[50];
float dummy;

printf("Hello World in C\n\r");
gets(string);
dummy= atof(string);
printf("%f",dummy);
fflush(stdout);
while(1); // Idle

}
and the Linker say :
Link Error : Undefined : "atof"
Referenced from "main" in main.c

Link failed.

C_TRK_4i_CF_SZ_MSL.a, C_4i_CF_SZ_MSL.a, fp_coldfire.a and C_4i_CF_Runtime.a are in the project.
What's wrong ?
This kind of project worked with CW 6.2.



Thanks,
Emmanuel

Message Edited by BugMan on 2006-08-2202:02 AM

Message Edited by BugMan on 2006-08-22 02:02 AM

Outcomes