Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* C , C++ compiler for alpha/RH linux
@ 2000-10-26 14:53 Anis Mohamed
  2000-10-30  9:39 ` Martin Kahlert
  0 siblings, 1 reply; 2+ messages in thread
From: Anis Mohamed @ 2000-10-26 14:53 UTC (permalink / raw)


I am trying to load c, c++ compilers on a compaq alpha/ redhat linux server.
I downloaded the rpms from rpmfind.net and have installed the latest version
of gcc and cc along with the
proper files required to load these compilers. And after that i have
installed the compaq supplied
compilers ccc and cxx.

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.)

Does anybody know whether i need to install another rpm?
.I am very inexperienced with linux and alpha, I would greatly appreciate
any information in this regards.

Thanks
Anis




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: C , C++ compiler for alpha/RH linux
  2000-10-26 14:53 C , C++ compiler for alpha/RH linux Anis Mohamed
@ 2000-10-30  9:39 ` Martin Kahlert
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Kahlert @ 2000-10-30  9:39 UTC (permalink / raw)


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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-10-30  9:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-10-26 14:53 C , C++ compiler for alpha/RH linux Anis Mohamed
2000-10-30  9:39 ` Martin Kahlert

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