This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]