Skip to main content
fmiklasz
Associate
June 4, 2010
Question

problem with casting between float and int

  • June 4, 2010
  • 12 replies
  • 3713 views
Posted on June 04, 2010 at 19:09

problem with casting between float and int

    This topic has been closed for replies.

    12 replies

    fmiklasz
    fmiklaszAuthor
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 13:53

    Ole! it works:) thx all of you!

    Tesla DeLorean
    Guru
    May 17, 2011
    Posted on May 17, 2011 at 13:53

    Perhaps you should #include <math.h>, and provide the linker with the correct path (-L) to the libraries you need.

    I think you need to be looking for libm.a in the lib/thumb2 directory (ie appropriate for the STM32) for your tools.

    http://www.network-theory.co.uk/docs/gccintro/gccintro_17.html

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..