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

Re: New to gcc: missing sin/cos



On Sun, 5 Dec 1999, Brian G. Neal wrote:

> I assume I need to include some library that has sin/cos.
> I found the -l switch to pass libraries to the linker but
> I have no idea what library to use. Am I missing something

You need to use -lm (link libm, the math library).


Reply to: