← Back to team overview

ubuntuforums-unanswered team mailing list archive

Re: [Question #77587]: C compiler does not recognize the EXP function even though the program includes math.h

 

Question #77587 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/77587

    Status: Open => Answered

frankdunn proposed the following answer:
I found out that you have to put -lm at the end of the line when you
compile, so it will look like this:

cc checkExp.c -lm -o checkExp.out

I don't actually know why is -lm for, though.

-- 
You received this question notification because you are a member of UF
Unanswered Posts Team, which is an answer contact for Ubuntu.