Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: martin.kahlert@infineon.com (Martin Kahlert)
Subject: Re: C , C++ compiler for alpha/RH linux
Date: 30 Oct 2000 09:39:13 GMT	[thread overview]
Message-ID: <8tjfk1$bap$2@news.mch.sbs.de> (raw)
In-Reply-To: 8t9gee$82s$1@news.tamu.edu

In article <8t9gee$82s$1@news.tamu.edu>,
	"Anis Mohamed" <ama6106@unix.tamu.edu> 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.


      reply	other threads:[~2000-10-30  9:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-26 14:53 C , C++ compiler for alpha/RH linux Anis Mohamed
2000-10-30  9:39 ` Martin Kahlert [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox