Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

Problem with float and GCC

Problem with float and GCC

2005-06-02 by sebfr74

Hi,
I'm new to LPC2138, I'm actually modify a design who run on a dallas 
87c520 to a LPC2138 with GCC. 
I want to do this (it's run well with keil PK51 but not with GCC) :

unsigned char Tab[3];
float Resolution[8];

Resolution[1]=(float)(Tab[7]|Tab[8]*0x0100)*0.00001;

It compil well but I've got this error on the linking :
error: undefined reference to '__floatsisf'
:/cygdrive/c/ARM7/../driver.c:293: undefined reference 



Thanks for you help
Sebastien

Re: [lpc2000] Problem with float and GCC

2005-06-04 by Robert Adsett

At 07:58 PM 6/2/05 +0000, sebfr74 wrote:
>Hi,
>I'm new to LPC2138, I'm actually modify a design who run on a dallas
>87c520 to a LPC2138 with GCC.
>I want to do this (it's run well with keil PK51 but not with GCC) :
>
>unsigned char Tab[3];
>float Resolution[8];
>
>Resolution[1]=(float)(Tab[7]|Tab[8]*0x0100)*0.00001;
>
>It compil well but I've got this error on the linking :
>error: undefined reference to '__floatsisf'
>:/cygdrive/c/ARM7/../driver.c:293: undefined reference


It's missing the floating point support.  Either you are linking to a 
support library that doesn't include software based floating point support 
or you are not linking to the base support library.

Robert


" 'Freedom' has no meaning of itself.  There are always restrictions,   be 
they legal, genetic, or physical.  If you don't believe me, try to chew a 
radio signal. "  -- Kelvin Throop, III
http://www.aeolusdevelopment.com/

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.