[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Solved: GCC Problem



Hi Folks

I have found out the answer to the gcc problem

To include the math library we need to supply the command line flag
-lm.

So my program now compiles as
gcc -o p p.c -lm

OR

gcc -o p p.c /usr/lib/libm.a

I am sorry to have described this as a bug.

I am highly sorry for my mail.

Thanks

Vipin Pandey