Junichi Uekawa <[EMAIL PROTECTED]> writes:
> On Sun, 6 Feb 2000 13:55:08 -0600, Brad <[EMAIL PROTECTED]> was crying out
> from somewhere
> about: Re: [*] about gcc
>
> lists> On Mon, Feb 07, 2000 at 04:38:32AM +0900, Junichi Uekawa wrote:
> lists> > you
On Sun, 6 Feb 2000 13:55:08 -0600, Brad <[EMAIL PROTECTED]> was crying out from
somewhere
about: Re: [*] about gcc
lists> On Mon, Feb 07, 2000 at 04:38:32AM +0900, Junichi Uekawa wrote:
lists> > you need to do
lists> >
lists> > gcc -lm
lists> >
lists>
On Mon, Feb 07, 2000 at 04:38:32AM +0900, Junichi Uekawa wrote:
> you need to do
>
> gcc -lm
>
> to link the maths library.
>
> Don't ask me why.
Because the actual code for the sqrt function is in the math library,
and the math library isn't linked in by default.
--
finger for GPG publi
On Mon, Feb 07, 2000 at 04:38:32 +0900, Junichi Uekawa wrote:
> you need to do gcc -lm to link the maths library.
>
> Don't ask me why.
Because the linker and the preprocessor are independent programs involved in
the compile process. #include causes the compiler to know about the
prototypes (arg
On 7 Feb 2000 01:09:00 +0800, [EMAIL PROTECTED] ([EMAIL PROTECTED]) was crying
out from somewhere
about: [*] about gcc
maths> hello everybody:
maths>
maths> i am using debian 2.1r4, i install it use deselect's preselect
"scientific
maths> workstation". i found my gcc doesn't allow me to use
On Mon, Feb 07, 2000 at 12:49:37AM +0800, [EMAIL PROTECTED] wrote:
> hello everybody:
>
> i am using debian 2.1r4, i install it use deselect's preselect "scientific
> workstation". i found my gcc doesn't allow me to use "sqrt", for example:
>
> this is a c file: a.c
>
> #include "stdio.h"
> #in
6 matches
Mail list logo