[lug] OT: cc question

Stephen Queen svq at peakpeak.com
Wed Dec 3 02:45:01 MST 2003



Ed Hill wrote:

>  
>
>
>Yes, whenever using functions declared in "<math.h>" you should also use
>"-lm" at the end to link against the math library such as:
>
>  cc -o simple  simple.c -lm
>
>If you don't, then the linker ("ld") will complain about unresolved
>symbols.
>
>Ed
>  
>
Is this a holder over from the days of math co-processors?

Thanks,
Steve




More information about the LUG mailing list