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

Jonathan Wilson
Mon Feb 28 10:49:00 GMT 2005

Depends on what OS.
If its linux (or some other unix), the manpages for the function should 
tell you.
If its something else (e.g. mac, windows, etc), I dont know.
But for all the math functions, use -lm

More information about the Gcc-help mailing list