Unable to link math library in GCC compiler - Ubuntu

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Prasannan
    New Member
    • Jan 2010
    • 1

    Unable to link math library in GCC compiler - Ubuntu

    I am a new Linux - Ubuntu user. Math functions like sqrt(), sine() etc give error during compilation. Could anyone suggest a solution?
  • alexis4
    New Member
    • Dec 2009
    • 113

    #2
    You should first tell us what error is this or give us a piece of code.
    Anyway, do you include the proper header file?

    Comment

    • newb16
      Contributor
      • Jul 2008
      • 687

      #3
      -lm switch in linker options?

      Comment

      Working...