Thread: Problems with sqrt -linux mint

  1. #1
    Registered User
    Join Date
    Mar 2014

    Problems with sqrt -linux mint

    Hey, i have a problem with sqrt in linux-mint. I use eclipse and i have put in gcc C linker lm but dosen't work. I try to run with the terminal bat the result was the same...undefine references to sqrt. knows somebody how can i fix this? please excuse my english.

  2. #2
    Registered User
    Join Date
    Jun 2005
    It is "-lm" (note the minus sign) not "lm".

    Beyond that, we're not mind readers. Show a SMALL sample of code that exhibits the problem, describe your command lines, build options, etc.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can't run compiled c-programs in linux mint
    By duckdace in forum Linux Programming
    Replies: 8
    Last Post: 01-30-2011, 12:19 AM
  2. Linux problems
    By Dark_Phoenix in forum Tech Board
    Replies: 1
    Last Post: 03-22-2008, 05:30 AM
  3. problems with sqrt function
    By edzsmith in forum C Programming
    Replies: 7
    Last Post: 01-01-2008, 02:56 PM
  4. problems with linux UDP server
    By Lopizda in forum Networking/Device Communication
    Replies: 5
    Last Post: 04-26-2007, 08:42 AM
  5. Linux: WINE Problems
    By Linux Newbie in forum Tech Board
    Replies: 1
    Last Post: 05-09-2003, 06:06 PM