* newbie using cxx on tru64unix
@ 2001-03-07 2:03 Pui Ming WONG
2001-03-06 12:49 ` Mark Garrett
0 siblings, 1 reply; 3+ messages in thread
From: Pui Ming WONG @ 2001-03-07 2:03 UTC (permalink / raw)
sorry a few trivial questions (to answer one user
trying to compile a test c++ program on our alpha)
1. Is it necessary to load cmath library to call function
to raise a number to a certain power
i.e. place line
#include <cmath.hxx>
in the program
(or it is built in there already ?)
2. Is the function called
pow ?
(if not, what is it?)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: newbie using cxx on tru64unix
2001-03-07 2:03 newbie using cxx on tru64unix Pui Ming WONG
@ 2001-03-06 12:49 ` Mark Garrett
2001-03-07 16:17 ` Marble Head
0 siblings, 1 reply; 3+ messages in thread
From: Mark Garrett @ 2001-03-06 12:49 UTC (permalink / raw)
in article 9844u4$5b8$1@net44p.hkbu.edu.hk, Pui Ming WONG at
s11976@net2.hkbu.edu.hk wrote on 07/03/2001 13:03:
>
> sorry a few trivial questions (to answer one user
> trying to compile a test c++ program on our alpha)
>
> 1. Is it necessary to load cmath library to call function
> to raise a number to a certain power
> i.e. place line
> #include <cmath.hxx>
We don't have a special set of c++ heads like your example .hxx instead all
of the standard C header files have conditionals to handle being included
into either C or C++ just #include <math.h>
>
> in the program
> (or it is built in there already ?)
> 2. Is the function called
> pow ?
> (if not, what is it?)
If you don't have a system then I excuse your lack of attempts to answer
such a question, otherwise RTFM :)
man pow
Cheers
Mark :)
ps.
yes there is a pow function include math.h and link in libm.a
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-03-07 16:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-07 2:03 newbie using cxx on tru64unix Pui Ming WONG
2001-03-06 12:49 ` Mark Garrett
2001-03-07 16:17 ` Marble Head
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox