Re: Help with sqrt() and #include <math.h> and what -l???

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ron Hudson writes:
 > -lm works, Thank you.
 > 
 > Now how can I answer that sort of question for myself in future...  I 
 > looked at the man page for
 > sqrt and gcc, but they didn't tell me anything.

I wrote a tutorial for GCC which covers most of what you need to know,
see http://www.network-theory.co.uk/gcc/intro/ for details (chapter 2 
has examples dealing specifically with the problem you encountered).

All the money raised from sales of the book supports the development
of free software and documentation.

-- 
Brian Gough
(Author of "An Introduction to GCC")

Network Theory Ltd,
Publishing Free Software Manuals --- http://www.network-theory.co.uk/

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux