As Derrick said, add -lm to the link. But be aware that ARM doesn't have a floating point co-processor and as a result every fp calculation triggers a kernel trap, which then emulates the operation for you in integer math. It will be very slow. Try to do as much as possible in simple 32-bit integer math and it will be nice and snappy.
_________________________
40GB - serial #40104051 gpsapp