arm a float

Fanda Kopriva info na elektronikavyvoj.cz
Úterý Srpen 10 12:54:04 CEST 2010


Dobry den
nechodi mi konverze k float cislum .Nekde delam chybu a nemuzu na to prijit.

arm-elf-ld -v -Map main.map -T2378_demo.cmd -o main.out  crt.o main.o 
gps3.o libc.a libm.a libg.a

                                               toto je v MAIN.C  nize 
uvedene soubory jsou v pracovnim adresari
#include "LPC23xx.h"
#include "stdlib.h"
#include "newlib.h"
#include "main.h"                           
#include "math.h"                           
#include "_ansi.h"                           

  float PRAHpom2,PRAHFsuma,PRAHdeviace,PRAHnovy;

//cast programu
1277:      PRAHFsuma = PRAHFsuma + (float)PRAHpom1; 
1278:      PRAHFsuma = PRAHFsuma / 
1000;                                             }
                                            
1280:      PRAHdeviace = sqrtf(PRAHFsuma);
1281:      PRAHb = (signed short)PRAHdeviace;
                                            
                                              toto je vypis chyb

C:\tata\akcekomp\minipcs\armprog\arm1/main.c:1277: undefined reference 
to `__floatsisf'
C:\tata\akcekomp\minipcs\armprog\arm1/main.c:1277: undefined reference 
to `__addsf3'
C:\tata\akcekomp\minipcs\armprog\arm1/main.c:1278: undefined reference 
to `__divsf3'
C:\tata\akcekomp\minipcs\armprog\arm1/main.c:1281: undefined reference 
to `__fixsfsi'

Diky za ochotu.


More information about the Hw-list mailing list