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

Re: Libray Disconnect



On Mon, Oct 21, 2002 at 08:37:00 -0400, Russell E. Dolly wrote:
>    This code produces the following error message:
>    /tmp/ccuDTnJ1.0 in fuction 'main'(.text+0x11):undefined reference to
>    'atan'
>    I seems if find the header file, but not the defintion.

Indeed. Did you specify "link against the math library" on the link line?
i.e.
	gcc -o mydemo demo.c -lm
       
HTH,
Ray
-- 
Do Microsoft's TCO calculations include TC of downtime?



Reply to: