From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,12787694d2b8c38a X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2000-10-30 01:39:14 PST Path: supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!upp1.onvoy!onvoy.com!news.maxwell.syr.edu!news.netcologne.de!newsfeed01.sul.t-online.de!t-online.de!do.de.uu.net!frankfurt.de.uu.net!newsfeed.siemens.de!news.mch.sbs.de!not-for-mail From: martin.kahlert@infineon.com (Martin Kahlert) Newsgroups: comp.os.linux.alpha Subject: Re: C , C++ compiler for alpha/RH linux Date: 30 Oct 2000 09:39:13 GMT Organization: Infineon AG Message-ID: <8tjfk1$bap$2@news.mch.sbs.de> References: <8t9gee$82s$1@news.tamu.edu> Reply-To: martin.kahlert@mchp.siemens.de NNTP-Posting-Host: keksy.muc.infineon.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Newsreader: knews 1.0b.1 Xref: supernews.google.com comp.os.linux.alpha:1020 In article <8t9gee$82s$1@news.tamu.edu>, "Anis Mohamed" writes: > but the c header files provided in the glibc rpm doesnt seem to contain lot > of commonly > used functions! ( for example the math.h doesnt contain the sin, cos, etc > functions.) Have you looked inside them? The header files only supply information about the types of the function parameters and the return type to the compiler. The code for 'sin/cos..' is inside libraries. In Unix, somebody decided, that very few people use these functions, and so there code is not in libc but in libm. So just add -lm to your link line. Hope that helps, Martin. -- The early bird gets the worm. If you want something else for breakfast, get up later.