floating point parameter not linking

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sreelaksmi

    floating point parameter not linking

    while doing structure pointer program i got error as floating point parameter not linking. i declared this variable as a structure element. wen it conevrt to integer the error going.
  • ashitpro
    Recognized Expert Contributor
    • Aug 2007
    • 542

    #2
    Can you post the code snippet?

    Comment

    • BillyTKid
      New Member
      • Aug 2010
      • 7

      #3
      You should explicitly link the math library like:

      gcc foobar.c -o foobar -lm

      Comment

      Working...